How do I go about adding extra parameters on the call back function?
eg.
function callback(data){
alert(data.message);
}
And you would call it by Dajaxice.examples.args_example(callback, {'text':$('#text').val()}
what if I want to add an extra parameter in the callback function
function callback(data, flag){
alert(data.message);
if (flag){ /* do something */}
}
Currently I have a work around like this:
Dajaxice.examples.args_example(function(data){
callback(data, true);
}, {'text':$('#text').val()});
Is there a better way or official way to do it in dajaxice?