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

Re : Send only some fields to update the model

$
0
0
I have a Json data like :
 {
      "a":{
            "b":[],
            "c":[],
            "d":[]
          }
}

So I have a select tag which has the key (b,c,d).
model is findAll and link to the url of json file.

in controls i have a change event triggered with observe property.
So how do i use findall here to get the specific b or c value.
as the findAll({a:a}),function(response){
            that.element.html(can.view('ib.ejs',{
              category: response
            }

So when the key is changed the respective array data should be displayed. in {a:a} change will be triggered.
Can anyone help me out here.

Viewing all articles
Browse latest Browse all 3491

Trending Articles