• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxObserveField on the radio button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxObserveField on the radio button?


  • Subject: Re: AjaxObserveField on the radio button?
  • From: Yung-Luen Lan <email@hidden>
  • Date: Sat, 21 Aug 2010 21:03:31 +0800

Thanks, fullSubmit=true solved my case.

However, I get another problem, don't know if it's a bug of
Ajax.framework or webkit.

I use html5 <input type="number" /> to design my form. There is a
pretty stepper next to the field:
http://emberapp.com/yllan/images/safari-2

I can get my AOF to notice the change of value when I manually key
down the number, but when I click the stepper to change values, AUC
didn't get updated. Any insight of this?

Regards,
yllan

On Sat, Aug 21, 2010 at 4:31 PM, Farrukh Ijaz
<email@hidden> wrote:
> 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 <email@hidden> 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      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
 _______________________________________________
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

References: 
 >AjaxObserveField on the radio button? (From: Yung-Luen Lan <email@hidden>)
 >Re: AjaxObserveField on the radio button? (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: AjaxObserveField on the radio button?
  • Next by Date: Cloud Computing and PCI Compliance
  • Previous by thread: Re: AjaxObserveField on the radio button?
  • Next by thread: Cloud Computing and PCI Compliance
  • Index(es):
    • Date
    • Thread