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

new to ajax


  • Subject: new to ajax
  • From: Amedeo Mantica <email@hidden>
  • Date: Mon, 14 Apr 2008 20:12:11 +0200

Hello, I'm now experimenting ajax, and the forst problem comes out... probably is easy, but I need your help...

I'd like to create a nested WOPopUpButtons...

I wrote this code...

<wo:form action="$doSearch" multipleSubmit = "true">
<webobject name = "regionSelect" />
<wo:AjaxObserveField observeFieldID = "regionPopup" updateContainerID = "myProvinceContainer" action = "$doSearch" />
<wo:AjaxUpdateContainer id="myProvinceContainer">
<webobject name = "provinceSelect" />
<wo:AjaxObserveField observeFieldID = "provincePopup" updateContainerID = "myCentreContainer" action = "$doSearch" />
</wo:AjaxUpdateContainer>
<wo:AjaxUpdateContainer id="myCentreContainer">
<webobject name = "centerSelect" />
</wo:AjaxUpdateContainer>
</wo:form>



regionSelect : WOPopUpButton {
displayString = aRegion.name;
selection = selectedRegion;
list = regionList;
item = aRegion;
id = "regionPopup";
}

provinceSelect : WOPopUpButton {
displayString = aProvince.name;
list = selectedRegion.provinces;
item = aProvince;
selection = selectedProvince;
id = "provincePopup";
}

centerSelect : WOPopUpButton {
displayString = aCenter.name;
list = selectedProvince.dealers;
item = aCenter;
selection = selectedCenter;
}

the regionSelect popup works fine and updates the provinceSelect automatically, but when i make chandes on provinceSelect popup i have to hit the return key to have centerSelect to be updated.


Where I go wrong??

Thank You
Regards
Amedeo
 _______________________________________________
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: new to ajax
      • From: "Daniele Corti" <email@hidden>
    • Re: new to ajax
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Convenience functions in model classes
  • Next by Date: Re: new to ajax
  • Previous by thread: Re: Ajax in ProjectWonder
  • Next by thread: Re: new to ajax
  • Index(es):
    • Date
    • Thread