- From: Josef Dietl <josef@mozquito.com>
- Date: Mon, 25 Jun 2001 18:09:32 +0200
- To: Mats Norén <mats.noren@spectral.se>, <www-forms@w3.org>
Hi Mats, the answer to your question is actually not specific to XForms, but the broader issue of HTML events which we have borrowed for the purposes of XForms. The Events draft [1] is still undergoing a revision (in other words: stay tuned), but for the purposes of XForms we have thought of a shortcut that would look like the following: Given the structure you provided, you could write <button> <caption>pushme</caption> <toggle switch="us" case="uk" /> </button> This is in no way approved yet - please tell us what you think about it. Josef -----Original Message----- From: Mats Norén [mailto:mats.noren@spectral.se] Sent: Monday, June 25, 2001 5:46 PM To: www-forms@w3.org Subject: Questions on the WD-XForms-20010608 How is the switch construct supposed to work? By reading the spec I couldn´t really see how the bind between the action toggle to the switch construct is supposed to work. <switch id="01" default="initial"> <case id="us"> <group> <caption>Please Specify a US Shipping Address.</caption> </group> </case> <case id="uk"> <group> <caption>Please specify a UK shipping address.</caption> </group> </case> <case id="initial"> <group>...</group> </case> <onevent id="shippingAddress" registerwith="01" type="dom-click"> <action id="us"> <toggle switch="01" case="us"/> </action> </onevent> </switch> Is the onevent embedded in the switch construct or? Or is it embedded in the UI-control or in a group element? /Regards Mats Norén
Received on Monday, 25 June 2001 12:09:32 UTC