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 ==
'parsererror') {
...
}

--
anatoly t.

On Dec 9, 7:13 pm, "T.J. Simmons" <theimmortal...@gmail.com> wrote:
> Are you using $.ajaxor one of the otherAJAXfunctions? $.get and the
> rest only execute a callback upon success; you'll need to use $.ajax
> if you want a callback for anerror.
>
> http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktypehas some
> more information on that.
>
> -T.J.
>
> On Dec 9, 6:30 am, Cameron van den Bergh
>
> <cameron.vandenbe...@gmail.com> wrote:
> > Good day,
>
> > When executing anajaxrequest, i've noticed the following problems :
> > - the textStatus callback parameter is always set to success ;
> > - the callback isn't triggered if a downloaderroroccurs (404 for
> > example).
>
> > I understand that the second problem might be unsolvable but is there
> > any way to get the textStatus to work properly or is it still being
> > worked on ?
>
> > Thanks for your help,
>
> > Cameron

Reply via email to