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

RE: Actions in form controls

From: Borgrink, Susan <sborgrink@progeny.net>
Date: Thu, 12 Feb 2004 17:32:58 -0500
Message-ID: <FB041607EAE6DF4697B73E29142D1C4B015577@es3.progeny.net>
To: "Jonathan Ito" <jito@ksventures.com>, <www-forms@w3.org>

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 not "xforms-value-changed".

Susan
FormFaces Developer


-----Original Message-----
From: Jonathan Ito [mailto:jito@ksventures.com]
Sent: Thursday, February 12, 2004 16:59
To: www-forms@w3.org
Subject: Actions in form controls



Hi,

I'm relatively new to XForms and have a question:

I have the following code fragment (basic select1 statement):

<group>
            <select1 ref="myValue">
                <label>Choose one</label>
                <item>
                   <label>Item 1</label>
                   <value>v1</value>
                </item>
                <item>
                   <label>Item 2</label>
                   <value>v2</value>
                </item>
            </select1>
<group>

How can I fire off some action as soon as the user selects a value from 
the list without having to bother with some submit button.

I've tried inserting the following in the form control:

<action event="xforms-value-changed">
    <send submission="debug"/>
</action>

but this doesn't seem to be working.  I'd really appreciate any help!

Jonathan
Received on Thursday, 12 February 2004 17:32:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:57 GMT