Thanks Matt for your answer.
Thanks for your help.
Ricardo Obregón
YiiFramework developer, UX consultant
That trick is nice, and works perfectly, however, since I'm creating dependent dropdowns/models, it would be nice if there was a way to delay the load of a "List" until some condition got filled.
Example: the model2 will "findAll" after the model1 got completed, and model3 after model2... and so on.
Btw, I now that I can use the "complete" param (since $.ajax uses it), however, if I use that, then I cannot initialize a component until all the wodels are loaded.
I found a workaround for that :)
It is preloading all the data I need and fitering using "attr" function.
Something like:
- myList.attr(...)
Thanks for your help.
Ricardo Obregón
YiiFramework developer, UX consultant