AjaxObserveField on the radio button?
AjaxObserveField on the radio button?
- Subject: AjaxObserveField on the radio button?
- From: Yung-Luen Lan <email@hidden>
- Date: Sat, 21 Aug 2010 16:16:18 +0800
Hi,
I try to use AjaxObserveField to monitor the change of radio button.
However, it's not working.
Here is the code to demonstrate the problem:
<wo:radio value = "option1 selection = "$radioValue" id="opt1" name="radio1" />
<wo:radio value = "option2" selection = "$radioValue" id="opt2" name="radio1" />
<wo:radio checked = "$option3" id="opt3" name="radio2" />
<wo:radio checked = "$option4" id="opt4" name="radio2" />
<wo:submit action = "$update" value="update" />
<auc id="auc">
<wo:str value = "$radioValue"/>
<wo:str value = "$option3"/>
<wo:str value = "$option4"/>
<aof observeFieldID = "opt1" updateContainerID = "auc" action = "$update" />
<aof observeFieldID = "opt2" updateContainerID = "auc action = "$update" />
<aof observeFieldID = "opt3" updateContainerID = "auc" action = "$update" />
<aof observeFieldID = "opt4" updateContainerID = "auc action = "$update" />
</auc>
No matter how I click the radio button, it won't change the value of
radioValue, option3 and option4 unless I click the submit button.
I want to update the AUC when user change the radio selection
immediately. Is there any way using AOF to accomplish that?
Thanks.
Regards,
yllan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden