Click here to Skip to main content
15,891,798 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I want to implement 'Copy To Clipboard' functionality in my website which should work for all browsers. I implemented with Javascript function but it works only in IE. for other browsers i tried flash but i have no idea about how to make flash working in my website.please help me.

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 31-May-11 3:13am    
How flash can do anything with clipboard? Generally, touching system clipboard is a bad thing, as it can potentially change change clipboard without user consent. No wonder it is browser-specific. The situation when the user decided when to copy to clipboard looks ideal, why change it?
--SA

Please have a look here: http://code.google.com/p/zeroclipboard/[^]. There is a link to a test so you can try it out with your pick of webbrowsers.

Cheers!

-MRB
 
Share this answer
 
Recommended that '.each' does not work in google chrome for zeroclipboard. to make it working in chrome, use '.mouseover'. I wasted 5-6 days behind finding solution to make it working in chrome and finally found such a silly solution.


Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900