[jQuery] Re: Ajax error handling & textStatus

2009-12-29 Thread anatoly techtonik
What about $.load() callback? Seems like its called in all possible cases. The only disadvantage is error checking - is there any helper in jQuery to check textStatus for error? This one is not particularly beautiful. if (textStatus == 'error' || textStatus == 'timeout' || textStatus == 'parsererr

[jQuery] Re: Ajax error handling & textStatus

2009-12-09 Thread T.J. Simmons
No problem, glad to help. -T.J. On Dec 9, 1:12 pm, Cameron van den Bergh wrote: > Thank you for this information, indeed, i was using $.get. > > On 9 déc, 18:13, "T.J. Simmons" wrote: > > > > > Are you using $.ajax or one of the other AJAX functions? $.get and the > > rest only execute a callba

[jQuery] Re: Ajax error handling & textStatus

2009-12-09 Thread Cameron van den Bergh
Thank you for this information, indeed, i was using $.get. On 9 déc, 18:13, "T.J. Simmons" wrote: > Are you using $.ajax or one of the other AJAX functions? $.get and the > rest only execute a callback upon success; you'll need to use $.ajax > if you want a callback for an error. > > http://docs.

[jQuery] Re: Ajax error handling & textStatus

2009-12-09 Thread T.J. Simmons
Are you using $.ajax or one of the other AJAX functions? $.get and the rest only execute a callback upon success; you'll need to use $.ajax if you want a callback for an error. http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype has some more information on that. -T.J. On Dec 9, 6:30 am,