Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  47] [ 5]  / answers: 1 / hits: 20750  / 15 Years ago, fri, july 17, 2009, 12:00:00

I'm trying to write a Javascript function to edit content from clipboard before pasting. Right now i got bound event 'paste' to function via JQuery.



$(this.elementDoc).bind('paste', function(event){
self.OnPaste(event);
});


But that's not important. Now I would like to get Data from clipboard, but I can't find out how. I would be glad for every hint.


More From » jquery

 Answers
64

This is a toughie. If I recall correctly, IE allows access to the clipboard, but by default Firefox does not due to security issues. I had to do this for a project I was working on, and was forced to use a small SWF file that did the copying.



http://www.jeffothy.com/weblog/clipboard-copy/


[#99108] Monday, July 13, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bryantc

Total Points: 455
Total Questions: 96
Total Answers: 110

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
;