- From: John Boyer <JBoyer@PureEdge.com>
- Date: Thu, 12 Feb 2004 15:41:39 -0800
- To: "Mark Birbeck" <mark.birbeck@x-port.net>, "Borgrink, Susan" <sborgrink@progeny.net>, "Jonathan Ito" <jito@ksventures.com>
- Cc: <www-forms@w3.org>
The detail I think he missed is the namespace on the event attribute. Cheers, John Boyer, Ph.D. Senior Product Architect and Research Scientist PureEdge Solutions Inc. -----Original Message----- From: Mark Birbeck [mailto:mark.birbeck@x-port.net] Sent: Thursday, February 12, 2004 3:23 PM To: 'Borgrink, Susan'; 'Jonathan Ito' Cc: www-forms@w3.org Subject: RE: Actions in form controls 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:item> <xforms:label>Item 1</xforms:label> <xforms:value>v1</xforms:value> </xforms:item> <xforms:item> <xforms:label>Item 2</xforms:label> <xforms:value>v2</xforms:value> <xforms:action ev:event="xforms-select"> <xforms:send submission="debug" /> </xforms:action> </xforms:item> </xforms:select1> 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. Regards, Mark Mark Birbeck CEO and CTO x-port.net http://www.formsPlayer.com/
Received on Thursday, 12 February 2004 18:41:53 UTC