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

Cascaded dropdowns/models

$
0
0
Hey guys,
I'm a PHP and JS developer, however I'm new to canJS, and I've found it very exciting.
However, I'm expriencing some challenges with my last development. I'm pretty sure that the solution must pretty simple, but I've checked the documentation and no clues about that.

What I'm trying to do is to create some cascaded/dependent dropdowns (if you change the first, then the second and then the third got refreshed). All the dropdowns are based on can.Model. And they load fine and work fine until I try to make they load in "cascaded" mode.

So, my questions are:
1. Is there a way to create dependent models (as soon as first loads, then the second is loaded and so on)?
2. Is there a way to refresh a Model.List with live-binding enabled? I mean something like:
  1. // myModel is a can.Model child
  2. var myList = new myModel.List(new myModel({}));
  3. myList.findAll(); // Does something like this exist? Because findAll() breaks the live-binding views.
3. Is there a way to make a Model.List instance to wait until some condition got filled?


Thanks in advance.

Ricardo

Viewing all articles
Browse latest Browse all 3491

Trending Articles