This is a pretty hot thing. Here is a site offering some js for that: http://www.liveclipboard.org/ and a demo: http://rayozzie.spaces.live.com/editorial/rayozzie/demo/liveclip/liveclipsample/clipboardexample.html
looking at the code i thought this could be easier(with less code) accomplished by a jQuery plugin but i am still a javascript beginner :-( Here is an article from techcrunch in the script. http://www.techcrunch.com/2006/03/07/microsoft-live-clipboard-wiring-the-web/ Hopefully someone picks up this idea. I think this could really rock. btw. this is my first msg, so i want to give my cheers to this great team. Without jQuery i would still hate javascript. Dan Atkinson wrote: > > Hey!<br/> > <br/> > Is there any snippet of code which allows the user to press a key and the > text in a div will be copied to the clipboard?<br/> > <br/> > I have some (non-jQuery) which only copies to the clipboard in IE (below), > so something which can do it FF would be great. I'm not bothered about > Safari, and Konquerer as it's an internal app and FF and IE are the only > two browsers used.<br/> > <br/> > Cheers.<br/> > <br/> > <br/> > IE compatible code: > <pre>javascript:copyText(divname)</pre> > -- View this message in context: http://www.nabble.com/Copy-text-to-clipboard-IE---FF-tf2197803.html#a6465713 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
