I can’t find the documentation on what the names of the three parameters are when $.ajax
fails.
Right now, I’m just using:
Here an example after looking for the same problem:
this.GetOrderList = function (customerId) {
var self = this;
$.post('MySuperServer.aspx', { customerId: customerId })
.done(function (dataStr) {
var orderList = jQuery.parseJSON(dataStr);
self.process(orderList);
})
.fail(function (jqXHR, textStatus, error) {
console.log("Post error: " + error);
});
}
While debugging, I've got: