KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to something similar to this: function AjaxService() { this.Remove = function (id, call_back) { myWebService.Remove(id, CallBack) } function CallBack(res) { call_back(res); } } so my calling program will be like this: var xx = new AjaxService(); xx.Remove(1,success); function success(res) { } Also if I want to add more parameters to success function how will I achieve it. Say if I have success function like this: var xx = new AjaxService(); //how to call back success function with these parameters //xx.Remove(1,success(22,33)); function success(res,val1, val2) { } Help will be appreciated.
Tags (comma-separated)
Save Edits
Cancel