W3C home > Mailing lists > Public > www-forms@w3.org > November 2001

event target

From: Alistair Coles <anc@hplb.hpl.hp.com>
Date: Thu, 22 Nov 2001 11:37:49 +0000
Message-ID: <3BFCE38D.B930F7F0@hplb.hpl.hp.com>
To: www-forms@w3.org
I have recently joined this list, so please forgive me if these are
'old' questions...

Further to the thread below, would it be correct to infer from the
spec. (in particular 11.4.6) that the 'xforms-instance-changed' event
is targetted at the form control node and NOT the instance data node? 

If so, that would mean that an event listener that registered with a
form control node would handle an xforms-value-changing event followed
by an xforms-instance-changed event for each 'change' to the
control...correct? And if multiple form controls ref the same instance
data, each one of them would fire an xforms-instance-changed event
when that data changed?

How might one attach a listener to the form that is called once (and
only once) when instance data changes, irrespective of the number of
form controls with binding to that data?

Many thanks,

> Message-ID: <00cb01c16126$f33876e0$7ef5a8c0@steven>
> From: "Steven Pemberton" <steven.pemberton@cwi.nl>
> To: <www-forms@w3.org>
> Date: Tue, 30 Oct 2001 10:40:43 +0100
> Subject: Re: Events in XForms 
> From: Jérôme Nègr <jerome.negre@ecl2000.ec-lyon.fr>
> Date: Fri, 5 Oct 2001 11:00:41 +0200
> > Hi, in §11.3 it says "Unless otherwise noted, the target node for all
> events is
> > the xform element". I didn't find such a note, so e.g. an
> xforms-value-changing event is
> > targeted to the corresponding xform element. Does this mean that a form
> > control can't have an action (see § listening to these XForms
> > events ? That would be surprising, so I think I must have misunderstood
> something...
> > If someone could enlighten me, thanks ! Jérôme Nègre
> It was an omission. It will be fixed in the next draft: for each event it
> will state which element it will be targetted at.
> Best wishes,
> Steven Pemberton
> Co-chair, W3C Forms Working Group

Alistair Coles                        alistair_coles@hp.com
Hewlett-Packard Laboratories,
Received on Thursday, 22 November 2001 06:29:56 UTC

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