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

AjaxObserveField


  • Subject: AjaxObserveField
  • From: Dawn Lockhart <email@hidden>
  • Date: Tue, 18 Mar 2008 17:36:02 -0400
  • Thread-topic: AjaxObserveField

I'm have a WOPopupButton, GradeLevelField, that when the value in it is
changed, I need to change the list of another WOPopupButton, CourseField.
I've figured out enough to know that I need an AjaxObserveField observing
the first button, but can't get it to perform the action that reloads the
second button.

<wo:form multipleSubmit = "$yes">
    <webobject name = "GradeLevelField"/>
    <webobject name = "GradeLevelObserveField"/>

    <wo:AjaxUpdateContainer id = "$courseUpdateID">
        <webobject name = "CourseField"/>
    </wo:AjaxUpdateContainer>
</wo:form>
....

GradeLevelField : WOPopUpButton {
    list = gradeLevels;
   item = gradeLevel;
   displayString = gradeLevel.name;

    selectedValue = selectedGradeLevel;
   id = gradeLevelFieldID;
   noSelectionString = "Select a Grade Level...";

}

GradeLevelObserveField : AjaxObserveField {
    observeFieldID = "GradeLevelField";
   updateContainerID = courseUpdateID;
   fullSubmit = false;

  action = selectGradeLevel;

}



CourseField : WOPopUpButton {

    list = courses;
   item = course;
   displayString = course.name;
   selectedValue = selectedCourse;

}



If I add
otherTagString = "onChange='this.form.submit();'";
to the GradeLevelField, it submits the form, but the observe field's action
is never called. How do I activate the observe field?

Dawn

 _______________________________________________
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
      • From: Mike Schrag <email@hidden>
  • Prev by Date: DST fixed for 08 in 5.4??
  • Next by Date: Re: AjaxObserveField
  • Previous by thread: Re: forcing component reload
  • Next by thread: Re: AjaxObserveField
  • Index(es):
    • Date
    • Thread