Need to refresh table and close the update window after pressing update button
Need to refresh table and close the update window after pressing update button
mbustamante
Posts: 1Questions: 1Answers: 0
This is the method i have
ajax: function (method, url, data, successCallback, errorCallback) {```
```if (data.action == 'edit') {
var dat = { punteo: data.data.punteo, idPar: idParticipante }```
```$.ajax({
type: "POST",
url: "/Servicios/WebServiceTeam.asmx/updateParticipantePunteo",
contentType: 'application/json; charset=utf-8',
datatype: "json",
data: JSON.stringify(dat)
});
}
}
This discussion has been closed.
Answers
Hi,
It looks like you need to add a
success
function to your$.ajax
call. Something like:If you are closing the window, why would you update the DataTable, since it is about to disappear?
Allan