You do not have access to the clipboard.
(Only IE provides some mechanism for it)

And from what I remember there might be some implementations for other
browsers. I think using flash. But they're very hackish.

On Thu, Nov 12, 2009 at 7:14 PM, sonal.breed <sonal.br...@gmail.com> wrote:
>
> Hi all,
> How can I get the text from the clipboard when user is about to paste.
> For example, if user has copied the text "Jquery forum", I should get this
> text from
> the paste event.
>
> I tried to use
>    $("#test").bind('paste', function(e) {
>        alert(e.clipboardData.getData("Text"));
>    });
>
>
> but I do not get anything.
> Can anybody give me any ideas??
>
> Thanks,
> Sincerely,
> Sonal.
> --
> View this message in context: 
> http://old.nabble.com/Get-paste-event-text.-tp26322586s27240p26322586.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>



-- 
Andrei Eftimie
http://eftimie.com
+40 758 833 281

Punct
http://designpunct.ro

Reply via email to