I've some ajax calls in which I would like to add handler in case of an error. I found the "error" handler but that doesn't work i.e. when internet connection is lost. Is there a second handler for these cases?
$.ajax({
type: "GET",
url: "dosomethink.php",
success: function (data) {
$('#abc').html(data);
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});