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

RE: Actions in form controls

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Thu, 12 Feb 2004 23:23:20 -0000
To: "'Borgrink, Susan'" <sborgrink@progeny.net>, "'Jonathan Ito'" <jito@ksventures.com>
Cc: <www-forms@w3.org>
Message-ID: <002901c3f1bf$3411dfa0$0d01a8c0@W100>

Hi Susan,

> Have you tried changing the <action event="xforms-value-changed">
> to <action event="xforms-select">?  "xforms-select" is the
> notification sent out when a select1 or select is selected ... 

'xforms-select' is targeted at the xf:item selected, not the xf:select1.
For example:

	<xforms:select1 ref="myValue">
		<xforms:label>Choose one</xforms:label>
			<xforms:label>Item 1</xforms:label>
			<xforms:label>Item 2</xforms:label>
			<xforms:action ev:event="xforms-select">
				<xforms:send submission="debug" />

This would only do the submission if "Item 2" was selected, but not if
"Item 1" was selected. ('xforms-select' would also go to an xf:case, in
an xf:switch.)

> ... not "xforms-value-changed".

'xforms-value-changed' is sent to *any* control that it bound to
instance data that has changed, so Jonathan's example is correct.
Assuming that his markup is correct (no missing prefixes, etc.), then he
just needs to check that the implementation he is using supports it.



Mark Birbeck

Received on Thursday, 12 February 2004 18:23:28 UTC

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