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

Event questions.

From: Rogelio Pérez Cano <rogeliop@satec.es>
Date: Thu, 27 Jul 2006 14:42:42 +0200
To: <www-forms@w3.org>
Message-ID: <E1G65CP-0005Ou-Nd@lisa.w3.org>

Hi All,

I have three questions related to Events in XForms.

1- The latest XForms 1.0 recommendation doesn´t forbid a handler attribute
in an <action> element,so does it mean that an <action> can be defined with
a handler attribute pointing to another <action>? 

(This can be usefull in order to reuse code).

  Something like that should it work? 

<xforms:trigger id="trigger1"> 
  <xforms:action ev:event="DOMActivate" ev:target="trigger1"
ev:observer="trigger1" ev:handler="action2"/>
  <xforms:message id="action2" level="modal" ev:event="DOMActivate"> Hi

I mean, when the "Button1" is pressed should the message be shown?

2- What is the interpretation of an <action> in terms of XML Events, is it a
listener or can be always considered like a handler?

3- What is the aim of having events in a <model> element, more specifically
what does this sentence mean?

"Attributes from XML Events are allowed on this element to facilitate
creating observers"

Many thanks

Received on Friday, 28 July 2006 12:22:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC