PDA

View Full Version : copy to clipboard across browsers



maitreya.karandikar
16 Apr 2013, 5:05 AM
Hi,
I want to implement "copy to clipboard" functionality cross browser(On IE8+, Chrome, Mozilla). As per my knowledge, any browser other than IE dose not allow this because of some security risks. Is there any way to copy data to clipboard using ExtJs? Or any plug-in which might help.
P.S. : I do not want user to select the data and then copy it to clipboard.

Thanks for your help in advance.

slemmon
18 Apr 2013, 9:21 AM
There's not an ExtJS / Javascript solutino that I'm aware of.
You might look at this Q/A:
http://stackoverflow.com/questions/6300213/copy-selected-text-to-the-clipboard-without-using-flash-must-be-cross-browser

el_chief
18 Apr 2013, 10:58 AM
You need to use Flash. Check out ZeroClipboard

https://github.com/jonrohan/ZeroClipboard