On Sun, Feb 6, 2011 at 5:21 PM, אריה גלזר <arieh.gla...@gmail.com> wrote: > > > On Sun, Feb 6, 2011 at 6:15 PM, Diego Perini <diego.per...@gmail.com> wrote: >> >> On W3C browsers you should be able to "capture" the "change" event >> without problems. > > IMO this is not a bubble/capture problem ( just verified - > http://jsfiddle.net/ariehg/4AZEL/17/). This is a problem with the way input > fields fire the change event. I was (still am) hoping there was a trick to > make it trigger it.
If you need to trigger capturing/bubbling events for each keystroke (printable) then you need to use the "input" and/or "textInput" events (for FF, Opera, Webkit). On IE there is no such event so you are forced to go with "keypress" events (and process). -- Diego > If I wasn't supporting IE I could simply trigger a fake event > (https://developer.mozilla.org/En/DOM/Document.createEvent), but as far as I > remember IE doesn't support user generated events.... > > -- > Arieh Glazer > אריה גלזר > 052-5348-561 > http://www.arieh.co.il > http://www.link-wd.co.il > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/jsmentors@jsmentors.com/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > To unsubscribe from this group, send email to > jsmentors+unsubscr...@googlegroups.com > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com