Hi Yung-Luen,

First of all, if you are observing multiple fields but updating a single AUC, 
then you do not need to use multiple AOF, only one is enough.

You need to wrap your inputs and AOF inside a form. You can use ERXOptionalForm 
for this purpose. Also you need to setup fullSubmit attribute of your AOF to 
true. Then it will work without any problem.

Farrukh

Sent from my iPad

On 21-Aug-2010, at 11:16 AM, Yung-Luen Lan <yungl...@gmail.com> wrote:

> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to farrukh.i...@fuegodigitalmedia.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to