RE: form submit events

"Gale, David" <[email protected]> Thu, 16 Mar 2006 13:07:55 -0500
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Ryan Hicks wrote:
> Do I have to account for the event handlers beeing run in *arbitary
> order*? I have not tested this very much, but the events seem to fire
> in the same order they have been attached to the object. But that's
> maybe luck? <<<<<<
> 
> From what I've seen, they're called in the _inverse order_ from which
> they are assigned.  I recall messing with this a while back and
> deciding to avoid adding the multiple methods to the same node and
> propagation type (e.g., an img can have onload and onmouseover, but
> not two onloads).  I may have come to that conclusion from reading
> the W3C, but I'm not certain. 
...
> I made the quick test below to validate the inverse order thing...this
> alerts "banana" and then "apple" in both FF and IE.

On my system (WinXP), IE6 gives banana first, but FF1.5.0.1 gives apple
first.  So, don't count on the order events happen in, as it's not
controlled by a standard spec.  Isn't arbitrariness fun?

-David


Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/