$.ajax({ type: "POST", async: false, contentType: "application/x-www-form-urlencoded;charset=UTF-8", xhrFields: { withCredentials: true }, url:url, data:data, success:function (response) { arr = response.Data.ListData; }, error:function (XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest.readyState); } });
readyState:
It is possible that an error was reported in your success callback function.