When I withdraw my server and make an ajax request, firebug shows that the request is interrupted a few seconds after the request, and my handler successreceives the call.
Why is the success handler called, should it not be an error handler? And how can I reliably detect that it was not really successful?
CODE:
$.ajax({
url: url,
type: "POST",
data: data,
dataType: "json",
success:function(data, statusText, xhr){
},
error: function(){
}
});
UPDATE: , .
, , , , , . , - .