Bug Tracker

Changes between Version 12 and Version 14 of Ticket #9121


Ignore:
Timestamp:
Jun 6, 2011, 8:37:56 AM (11 years ago)
Author:
Rick Waldron
Comment:

Mathias also has an implementation: http://mathiasbynens.be/notes/oninput

I believe he is going to have this, with unit tests, on github today.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9121 – Description

    v12 v14  
    33A while ago, I wrote a plugin that normalizes the event for browsers that don't support it, notably IE6-8.  I believe this works well enough, despite a few limitations.  Despite the existence of this event (and the plugin), every day I see people recommending the use of `onkeyup` for acting on user input.  Integrating this event into jQuery may help these users learn to handle user input more appropriately.
    44
    5 The following fiddle demonstrates the event (and the plugin) very basically:  http://jsfiddle.net/B459a/.  All it does is copies the text as you type, but as you can tell, there is no visual delay.
     5The following fiddle demonstrates the event (and the plugin) very basically:    All it does is copies the text as you type, but as you can tell, there is no visual delay.
    66
    77Further reading:
    88
    9 http://www.whatwg.org/specs/web-forms/current-work/#the-change
    10 http://www.whatwg.org/demos/2008-sept/widgets/
    11 http://blog.danielfriesen.name/2010/02/16/html5-browser-maze-oninput-support/
    12 http://whattheheadsaid.com/2010/09/effectively-detecting-user-input-in-javascript http://jsfiddle.net/B459a/.  All it does is copies the text as you type, but as you can tell, there is no visual delay.
     9
     10
     11
     12   All it does is copies the text as you type, but as you can tell, there is no visual delay.
    1313
    1414Further reading:
    1515
    16 http://www.whatwg.org/specs/web-forms/current-work/#the-change
    17 http://www.whatwg.org/demos/2008-sept/widgets/
    18 http://blog.danielfriesen.name/2010/02/16/html5-browser-maze-oninput-support/
    19 http://whattheheadsaid.com/2010/09/effectively-detecting-user-input-in-javascript
     16
     17
     18