• 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 and checkboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxObserveField and checkboxes


  • Subject: Re: AjaxObserveField and checkboxes
  • From: Johann Werner <email@hidden>
  • Date: Wed, 04 May 2011 20:04:40 +0200

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

  • Follow-Ups:
    • Re: AjaxObserveField and checkboxes
      • From: Joe Little <email@hidden>
References: 
 >AjaxObserveField and checkboxes (From: Joe Little <email@hidden>)

  • Prev by Date: AjaxObserveField and checkboxes
  • Next by Date: WOWODC: hotel reservations notice
  • Previous by thread: AjaxObserveField and checkboxes
  • Next by thread: Re: AjaxObserveField and checkboxes
  • Index(es):
    • Date
    • Thread