Solution:
error: function (xhr, ajaxOptions, thrownError) {
if(xhr.status == 404) {
// 404 error
}
else if(xhr.status == 403) {
// 403 error
}
else {
// default error
}
}
On 17. Nov, 03:12 h., Mike Alsup wrote:
> > errorThrown is for JavaScript errors (think try/catch).
Solution of your problem:
error: function (xhr, ajaxOptions, thrownError) {
if(xhr.status == 404) {
// some error
}
else if(xhr.status == 403) {
// another error
}
else {
// default error
}
}
On 24. Nov, 16:21 h., ricardobeat wrote:
> The XHR object and the error are pas
2 matches
Mail list logo