[jQuery] Re: ajax error handling troubles

2008-12-14 Thread MareceK
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).

[jQuery] Re: how to capture error 500/404 ?

2008-12-14 Thread MareceK
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