2008/4/15 Amedeo Mantica <[EMAIL PROTECTED]>:

> Thank you all! Now works fine...
> I'm starting to love Ajax :-)
>

Have a look at this first!
http://www.readwriteweb.com/archives/how_javascript_is_slowing_down_the_web.php


> On 15/apr/08, at 10:43, Daniele Corti wrote:
>
>
>
> 2008/4/14 Amedeo Mantica <[EMAIL PROTECTED]>:
>
> > 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 protected])
> > Help/Unsubscribe/Update your Subscription:
> >
> > http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
> >
> > This email sent to [EMAIL PROTECTED]
> >
>
>
>
> --
> Daniele Corti
> AIM: S0CR4TE5
> Messenger: [EMAIL PROTECTED]
>
> --
> 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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to