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

mbustamantembustamante Posts: 1Questions: 1Answers: 0
edited April 2015 in Editor

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)
                });
            }
       }

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Hi,

    It looks like you need to add a success function to your $.ajax call. Something like:

    success: function () {
      window.close();
    }
    

    If you are closing the window, why would you update the DataTable, since it is about to disappear?

    Allan

This discussion has been closed.