Hansy Schmitt Camacho
Posts: 0
Joined: Wed Oct 31, 2012 9:33 pm

Nested ajax Select

I have 3 select box, and they are secuentially loaded (After the first finish loading, the second loads with params for the first , and so on)
While i managed to make it work fine when changing any select, when the screen first start loading , i can not manage to make the 3 of them loads.

I managed to get the first loading, and the second with a hook to ajaxComplete, but if i try to do the same for the third select , it does not work (as ajaxcomplete is global)

Is there any recommendation of how to make it work for the 3 nested select?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Nested ajax Select

Maybe you can try this. Once the second select is loaded, send a brand new Ajax request to load the third select?

Hansy Schmitt Camacho
Posts: 0
Joined: Wed Oct 31, 2012 9:33 pm

Nested ajax Select

Ok, but what event should i use to do that ? AFAIK there is no such event as "onselectloaded" or anything i can use for it

Return to “Issues”