Page 1 of 1

Nested ajax Select

Posted: Wed Oct 31, 2012 9:33 pm
by Hansy Schmitt Camacho

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?


Nested ajax Select

Posted: Wed Oct 31, 2012 11:18 pm
by maxkatz

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


Nested ajax Select

Posted: Thu Nov 01, 2012 3:03 pm
by Hansy Schmitt Camacho

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