On 10/10/2006, at 12:13 AM, Sam Collett wrote:

> oninput doesn't seem to be documented by Mozilla. The only thing I can
> find is to do with XUL. As it isn't documented for the HTML DOM, there
> is a chance it may be dropped in the future.
> http://developer.mozilla.org/en/docs/Special:Search? 
> search=oninput&go=Go

Quite possibly. Although I am inclined to think that as long as it is  
supported in XUL, any XUL-based applications will support it by  
default. It just won't be a standard event.

Anyway, what I have done and which seems to work on limited testing  
so far is this:

jQuery.fn.paste = function(callback) {
     return this.each(function() {
         if ( this.addEventListener ) {
             this.addEventListener('input', callback, false);
         }
     }).bind('paste', callback);
}



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to