View Full Version : addEventListener()

03-26-2003, 05:21 PM
Hello all...

Was wondering if addEventListener() (and remove) work in any flavor of IE? I ask because I can't get it to work using IE, but can get it to work in a SVG document inside of IE...

The SVG raises more questions like: is the SVG plugin (adobe's) handling the addEventListener instead of the browser (why it works in IE if IE can't handle the event...) An example can be seen at:


Any help in clarifying this would be greatly appreciated!

03-26-2003, 06:26 PM
IE has it's own proprietary event handling mechanism, using attachEvent (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/attachevent.asp).

03-26-2003, 07:01 PM
Thanks so much...

Does attachEvent handle propegation and the 'capture' and 'bubble up' phases?

03-26-2003, 07:08 PM
Capturing was the netscape mechanism, bubbling the ie mechanism. W3C merged the systems. Ie have yet to support capturing, but it'll probably come with the better dom support that ie7 will have, whenever it is released.

03-26-2003, 07:10 PM
Great - thanks for the bit of history - makes it make that much more sense!

Thanks for you time!

03-26-2003, 07:47 PM
The Adobe SVG plugin implements its own, more correct, SVG DOM. (And the SVG DOM requires DOM2 Core and DOM2 Events)