On 2/6/11, אריה גלזר <[email protected]> wrote: > On Sun, Feb 6, 2011 at 6:15 PM, Diego Perini <[email protected]> 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 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.... > I see.
IE 9 does support w3c model. IE8 supports a model that is worse and buggier than the w3c's foetid stench. Here is an example of creating an adapter API for synth events. It does not include "change" event that you want. https://github.com/GarrettS/ape-javascript-library/blob/master/src/eventsynth/Mouse.js As you can see, it is a lot of plumbing. Problems with IE are in comments, including mention that "toElement" and "fromElement" aren't settable. -- Garrett -- 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]
