...

View Full Version : addEventListener()



DanBogaard
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:

http://www.rit.edu/~dsbics/svg/myMover.html

Any help in clarifying this would be greatly appreciated!

liorean
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).

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

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

liorean
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.

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

Thanks for you time!

jkd
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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum