I came across this brilliant code:- http://www.rodsdot.com/javascript/cross_browser_clipboard_copy_with_pop_over_message.asp which is the only one that works on all the browsers. It works on this site though,not for me. I don't know where i am going wrong. I have followed all the steps given there. Am i at fault or is the code missing some part?Have you been able to implement this code successfully? someone please help me out. Thanks
this relies on zeroClipboard which is a google code hosted project that works via flash. http://code.google.com/p/zeroclipboard/ - what is the problem you're having? after the latest security adjustments, flash is only allowed to access the clipboard on events, hence it makes an invis flash movie over the target elements that can then copy whatever code you may have, or that's the idea.
Are you trying it on your computer? It does not work locally unless you make some changes first. This is taken from the Zero Clipboard site Some other problems are: 1. The overlay moves away from the button image on some pages. 2. You sometimes need to click it twice. 3. Simple spelling error with one of the element ID or class names.
ya i know that,the problem is though it works perfectly on his site,when i follow the instructions provided there for my own site,it doesnt seem to work.have you tried it on your site?thanks
no i am trying it on my site only,but still doesn't seem to work. have you too tried using it on any of your sites?
I have not tried it on any sites. What site are you using it on? What about the test page that comes zeroclipboard. Does that work?
looks like the problem is solved,initially i was following the tutorial that was mentioned on that page,now i just used the test.html file that comes with it.it worked sometimes things are too simple but we try and complicate them
now all i got to do is implement this code for my custom script,thanks for the help guys,will let you know if or not i am able to incorporate this code into the script.