Firefox 3 supports the paste event, but minimally. FF3 (idk about FF 3.6+) fires the cut, copy, and paste events whenever these actions are inputted by the user, it does not check to see that something has actually been cut, copied, or pasted, it simply fire the event unceremoniously, and for most purposes, quite uselessly. Getting a good paste listener is going to require some sort of plugin, I doubt very much that jQuery has reliable native support. There might be something to having a change and keydown listener on the element and comparing the results to see what has changed.
On Fri, Apr 8, 2011 at 3:21 PM, Tim Down <[email protected]> wrote: > On Friday, 8 April 2011, scalvert <[email protected]> wrote: > > I need to detect a right-click paste into a regular input of type > > text. I only need to support the following: > > > > IE 7+ > > FF 2+ > > Safari 4+ > > Chrome 7+ > > > > I found this post on SO: > > > > http://stackoverflow.com/questions/686995/jquery-catch-paste-input > > > > And yes, I'm using jQuery. Does anyone have any experience with this? > > Pointers, tips, suggestions, cautionary tales? > > You have no chance in Firefox 2, which doesn't support the paste > event. Firefox 3 and all other browsers support the paste event. > > Tim > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
