[jQuery] Re: Ajax and 404 errors.

2009-05-14 Thread DisasterMan
I would recommend using a generic error alert function. This saves having to add an error: function() to each ajax call you use. Here is my function. It uses jQuery UI to improve the appearance of the error announcement and allow for html formatting: //javascript $(document).ready(function() {

[jQuery] Re: Ajax and 404 errors.

2009-05-14 Thread DisasterMan
That should be: myrequest.statusText I believe... On May 13, 3:27 pm, bhaveshphoneh...@gmail.com bhaveshphoneh...@gmail.com wrote: myrequest.status

[jQuery] Re: Ajax and 404 errors.

2009-05-13 Thread bhaveshphoneh...@gmail.com
myrequest.status On Apr 21, 6:38 am, Leanan the.leanan.si...@gmail.com wrote: I'm trying to load some javascript files via ajax, and for the life of me, I can't get it to catch 404 errors.  I've tried searching, but everything I've found says that I should check the status on the request