-
user1624552
jquery jquery-ajax asp.net-mvc-4 jquery-1.10
From a jQuery ajax call I perform a call to an action in the controller:function doSomTask(task) {return ajax({url: ‘/MyController/MyAction/’,data: { param: someParam },beforeSend: UpdateProgress(),type: ‘POST’}).then(function (data) { buildToolTipText(task, data);UpdateImageOK(task.Name);return ok(createObject(“status”, “ok”, “op”, “doTask”, “task”, task,”data”, “OK”));}, function (data) {buildToolTipText(task, $.parseJSON(data.responseText));UpdateImageNOK(task.Name);return ok(createObj