views:

802

answers:

1

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.

+3  A: 

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/

Calvin L