I have a web service that gets calls via jquery, it can take up to 60 seconds for data to be returned:
$.ajax({
type: "POST",
contentType: "application/json; charset=UTF-8",
url: "WebServices/behData.asmx/noResolutions",
data: JSON.stringify(param),
dataType: "json",
success: function (response) {
var data = response.d;
if ($.fn.DataTable.isDataTable("#tblCleanup")) {
$('#tblCleanup').DataTable().clear().destroy();
}
}
})
If for some reason I wanted to stop the execution of this method before the data is returned, how would I do it?
I would want the "stoppage" to occur through JQuery or javascript...