Clipboard copy from within application

2
I am working on an application which replaces an existing app. Users of that app are used to have a button to copy field info to the clipboard. Convincing them of changing that habit will be difficult. I guess this is not straigthforward to implement with a java action because that runs on the server. Has anyone done this before? Is there a widget for this? Any help appreciated.
asked
3 answers
5

I have build a widget called CopyToClipboard. It can be found in GitHub at https://github.com/Luch/CopyToClipboard and hopefully soon in the App Store. The widget is using jQuery and ZeroClipboard libraries. Enjoy!

answered
2

Copy to clipboard can potentially be dangerous, so most browsers don't really support it out-of-the-box.

http://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript

The most common solution is to use a small flash plugin for this, like this one suggest in the SO answers: https://github.com/mojombo/clippy

We don't have a widget that implements this yet.

answered
1

In the newest browsers (except Safari) there is now a HTML5-solution possible: http://zenorocha.github.io/clipboard.js/

answered