Add GET parameter to a backbone fetch model
Fetch model with GET parameters in URL
The solution is to add data: $.param({ mySuperVariableName: 1}) in the fetch options.
Folders.data.fetch(
{
data: $.param({ showContent: 1}),
success:function(model, response, options)
{
//model.deferred.resolve();
},
error:function(model, response, options)
{
//model.deferred.reject();
}
});
Recent Comments