Re: AjaxObserveField and checkboxes
Re: AjaxObserveField and checkboxes
- Subject: Re: AjaxObserveField and checkboxes
- From: Joe Little <email@hidden>
- Date: Wed, 04 May 2011 11:19:40 -0700
Thanks. On the right path now.
On Wed, May 4, 2011 at 11:04 AM, Johann Werner <email@hidden> wrote:
> Hi Joe,
>
> the observeFieldID in your example references the id of the enclosing span but should be–as the name implies–the id of the field to observe: the checkbox ;) remove the id from the span tag, put it into the bindings of the WOCheckBox and try again.
>
> jw
>
>
> Am 04.05.2011 um 19:39 schrieb Joe Little:
>
>> I have some actions taken from an AjaxModalDialog, so it would figure
>> that I need to use an AjaxObserveField to monitor checkboxes to change
>> those values, as otherwise they are never received due to the AMD.
>> What I've tried after reading the docs
>> (http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/ajax/AjaxObserveField.html)
>> leads me to this, but I'm not getting the togglePromoteWithAssign to
>> fire.
>>
>>
>> Here's my html:
>>
>> <span id="promoteAssign"><webobject
>> name="PromoteWithAssignmentsCheckBox"/> with
>> Assignments</span><webobject name="PromoteAssignObserveField"/>
>>
>> and the wod:
>>
>> PromoteAssignObserveField: AjaxObserveField {
>> observeFieldID = "promoteAssign";
>> action = togglePromoteWithAssign;
>> }
>>
>> PromoteWithAssignmentsCheckBox: WOCheckBox {
>> checked = promoteWithAssignments;
>> }
>
>
>
_______________________________________________
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