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

Re: new to ajax


  • Subject: Re: new to ajax
  • From: "Daniele Corti" <email@hidden>
  • Date: Tue, 15 Apr 2008 10:43:33 +0200



2008/4/14 Amedeo Mantica <email@hidden>:
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??
 
Why don't you simply use One AjaxUpdateContainer? I think it will give less problems... and usually I prefer add a fullSubmit=true to the AjaxObserveFields
 


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



--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 _______________________________________________
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: Amedeo Mantica <email@hidden>
References: 
 >new to ajax (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: databaseContextShouldFetchObjects/databaseContextDidFetchObjects not working
  • Next by Date: Strange behaviour of AjaxSortableList
  • Previous by thread: Re: new to ajax
  • Next by thread: Re: new to ajax
  • Index(es):
    • Date
    • Thread