Archive for the ‘Uncategorized’ Category
Copy to Clipboard in javascript using zeroclipboard
July 22, 2010
Leave a comment
zeroclipboard
After hrs of debugging able to figure out how to copy to clipboard. The solution provided by zeroclipboard seems to be working, but sometime bit time consuming to do it correctly.
ZeroClipboard.setMoviePath("http://localhost/js/ZeroClipboard.swf');
var clipArr = new ZeroClipboard.Client();
clipArr.setText("Your string interested to copy") ;
clipArr.setHandCursor( true );
clipArr.glue( 'copy-img' );
HTML snippet
<img src=”clickme.png” alt=”” />
Categories: Uncategorized
copy, javascript