Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Cascaded dropdowns/models

$
0
0
Thanks Matt for your answer.
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:
  1. myList.attr(...)

Thanks for your help.


Ricardo Obregón
YiiFramework developer, UX consultant

Viewing all articles
Browse latest Browse all 3491

Trending Articles