W3C home > Mailing lists > Public > www-forms@w3.org > February 2007

RE: Ordering of listeners at the current node

From: Clark, John <CLARKJ2@ccf.org>
Date: Thu, 8 Feb 2007 11:22:28 -0500
Message-ID: <F122C25B4CD6F34BB119A97593679601027CA806@CCHSCLEXMB59.cc.ad.cchs.net>
To: www-forms@w3.org

Uli,

Very true, and I use that pattern often.  I was more interested in the behavior of the case when the event handlers are registered at unrelated locations in the host document.  Now I know that I need to ensure that individual handlers are independent of one another.

> -----Original Message-----
> From: Ulrich Nicolas Lissť [mailto:unlisse@googlemail.com] 
> Sent: Thursday, February 08, 2007 11:16 AM
> To: mark.birbeck@x-port.net
> Cc: www-forms@w3.org; Clark, John
> Subject: Re: Ordering of listeners at the current node
> 
> John, Mark,
> 
> while Mark is right about DOM 2 Events, you may achieve 
> ordered event handler execution with xf:action: "This action 
> causes its child actions to be invoked in the order that they 
> are specified in the document." [1]
> 
> So you could write
> 
> <xf:action ev:event="some-event" ev:observer="foo">
>     <xf:message>Hello</xf:message>
>     <!-- ... -->
>     <xf:message>World</xf:message>
> </xf:action>
> 
> Regards,
> Uli.
> 
> [1] http://www.w3.org/TR/xforms/slice10.html#action-action





Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.


===================================
Received on Thursday, 8 February 2007 16:23:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:08 GMT