W3C home > Mailing lists > Public > www-forms@w3.org > August 2006

Re: XML Events: event handlers for multiple events?

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Sat, 5 Aug 2006 18:11:50 +0100
Message-ID: <640dd5060608051011h27755e7ex3c5b0b0db112894c@mail.gmail.com>
To: www-forms <www-forms@w3.org>

Hi Erik,

> Am I right to say that it is not possible to register an action as an
> event handler for multiple events with XML Events / XForms?

You can do that with the handler attribute:

  <ev:listener event="xforms-valid" handler="#h" />
  <ev:listener event="xforms-enabled" handler="#h" />

  <xf:action id="h">
    ...
  </xf:action>

> Wouldn't it be reasonable to be able to write something like:
>
> <xforms:action ev:event="xforms-valid xforms-enabled">
>    ...
> </xforms:action>

I don't see what harm it would do. :)

Regards,

Mark

-- 
Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/
Received on Saturday, 5 August 2006 17:12:06 GMT

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