Pasting an image from clipboard to a website - ajax

I need to come up with a solution for users to be able to paste an image on to a website, then upload that image on to the web server. I'm not sure what the right solution for this - I am pretty sure javascript is out of the question because I don't think it can handle binary clipboard data (or any clipboard data?)
So, I'm not sure which way to go with this. Is this something possible with a Java applet? Or maybe a Flash SWF? Any other alternatives?

Or this free one (via another StackOverflow question)

You can use pure JavaScript for this, assuming either Chrome or Chrome Frame. Since most other plugins or applets require a specific install action you might as well require installing Chrome Frame as that will fix quite a bit more than just pasting events.
View a live demo of a jQuery plugin that cleanly wraps the HTML Clipboard API. This demo requires the Chrome browser.

Rad Upload (java applet). It's not free, but it is relatively cheap.

Related

Is it possible to put Google Chrome into a "extension free" mode?

Is there a way to temporary deactivate all (or selected) Google Chrome extensions? This would be handy when I debug pages, since some extensions (eg. AdBlock, Clickable Links etc) modify the content of web pages.
Also sometimes I want to monitor how a page loads via the Chrome developer tool's timeline. But since extension-activity also is recorded it can get a bit messy.
Thank you!
https://support.google.com/chrome/bin/answer.py?hl=en&answer=95464
Sorry guys. I should have done some better research before posting here. I searched in chrome web store and found this extension, which seems to do the thing. Sorry for bothering you.
This solution was discarded since a better suggestion was given (see accepted answer).

creating a browser independent bookmarklet or browser addon

What is the best way to create one browser addon or bookmarklet that would seamlessly work on IE, Firefox and chrome, is there some google gadget that would let you do it?
This all depends on what you actually want to create. If your addon requires things like local storage or the use of xPath or other browser specific items than doing this seamlessly and correctly across the multiple platforms wouldn't be incredibly easy.
Generally speaking all the browsers are quite different. Chrome and Safari run webkit, Firefox Gecko and so on. Some support HTML5 well, others don't. If you're creating something complex you will have to do so for each individual browser. However, much of the code from one can be re-purposed with a few extra / different calls on another. Firefox for example has a lot in common with Chrome and Safari and Chrome and Safari are even more so closely related.
If your addon is very simple I'd recommend going with just a bookmarklet take a look at this http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/ using JQuery will help solve some if not all of the browser specific issue's you'll run into.
If you require an addon/extension or a bookmarklet do it with JQuery where possible.
I can't really give a more specific yes or no answer without more information. If you could please expand on perhaps what you're looking to do it would be much easier to help you.

Get homepage content with PHP curl() and push the result into a Flash player with actionscript

It's a freak question, but can you offer me any working solution in flash?
I want to create a website tester, so I want to get the external homepage and render it to the Flash... If it's an image or the full website I accept both.
I remember! Same as http://www.thumbalizr.com/ just ratio 1:1.
Is there any opensource script for it?
There is wkhtmltopng; IIRC it has PHP bindings also - note that it needs X installed on the server.

How to Enable ActiveX in Chrome?

I read that early builds of Chrome supported ActiveX, but was later restricted to certain MIME types (for support for say Windows Media Player). I then read Google was going to enable ActiveX strictly for the Korean market. How do I (re)enable this in Chrome?
Our web based product relies on ActiveX controls from 3rd parties to play custom video. This limits us to IE. We'd love to support Chrome also, but find it impossible w/o ActiveX support.
There is a proprietary plugin called "Neptune" which says that it will allow you to use IE Tab functionality in Chrome on Windows.
Meadroid do this because they have ActiveX controls which they have written and they want them to be able to work in any browser, and they explicitly mention Chrome in the list of supported browsers for enabling ActiveX with this.
There is also a modified version of Chrome, called ChromePlus, which includes IETab, among other extra features.
I've not used either of these personally, but they look like they'll do what you want. I'd be interested to hear if they work out for you, as I know of other people who want to be able to use IEtab in Chrome :)
anyone who says activex is less secure then NPAPI is crazy. They both allow the exact same access. Yes I've written both. The only reason people think activeX is insecure is because 10+ years ago IE had default settings that allowed a remote site to auto download the plugin.
maybe this new Chrome extension helps:
ActiveX for Chrome
https://chrome.google.com/extensions/detail/lgllffgicojgllpmdbemgglaponefajn/
This could be pretty ugly, but doesn't Chrome use the NPAPI for plugins like Safari? In that case, you could write a wrapper plugin with the NPAPI that made the appropriate ActiveX creation and calls to run the plugin. If you do a lot of scripting against those plugins, you might have to be a bit of work to proxy those calls through to the wrapped ActiveX control.
I'm not an expert but it sounds to me that this is something you could only do if you built the browser yourself - ie, not something done in a web page. I'm not sure that the sources for Chrome are publicly available (I think they are though), but the sources are what you'd probably need to change for this.
http://wiki.answers.com/Q/Does_Google_Chrome_support_ActiveX
Google Chrome comes with an ActiveX
shim, as part of its default plugin
array. So Google Chrome features at
least partial support for ActiveX
controls (as do many non-Internet
Explorer browsers). I can't find
information as to whether or not this
includes support for ActiveX security
certificates or the like, nor if/where
such plugins can be controlled, within
the browser.
..... Note that to enable the plug-in
you must run Chrome with the following
switch " --allow-all-activex" So in
shortcut that is used to start up
Chrome, add this after "Chrome.exe"
I downloaded this "IE Tab Multi" from Chrome. It works good! http://iblogbox.com/chrome/ietab/alert.php

How to know the real size of a web page?

I wan't to know the real size of a web page (HTML + CSS + Javascript + Images + etc.) but from the browser side, maybe with a software, Firefox Add-On or similar?
Use firefox, and get FireBug.
Then get the YSlow addon for firefox.
For IE, you can get the DebugBar which comes pretty close to giving the same information.
YSlow is a FireBug plugin (Firebug is a FireFox plugin), and it works great.
If you meant the entire website, you could get HTTrack (Software) and download the entire site... just be careful.. people don't like it when you do that!
I think the Firefox Plugin Extended Statusbar can do that for you.
It will give detailed information about what has been downloaded, including the size of the downloaded data.
If you can't or don't want to use firefox and its plugins, you can use Pingdom Tools.
Firefox now embedded developper tools (in the tools menu, or Ctrl+Shift+S) has a "Network" tab which allows for detailed monitoring of size and load time of a webpage. The context menu (right click) allows to save data in HTTP archive format (HAR).

Resources