The documentation for the ajax error function has this note in the example:

  // typically only one of textStatus or errorThrown
  // will have info

( http://docs.jquery.com/Ajax/jQuery.ajax#toptions )

Perhaps check the textStatus as well as the errorThrown?

Karl Rudd

On Mon, Nov 17, 2008 at 10:03 AM, Davide <[EMAIL PROTECTED]> wrote:
>
>                $.ajax({
>                        async: true,
>                        url: testingURL,
>                        success: function () {
>                                location.reload();
>                        },
>                        error: function (XMLHttpRequest, textStatus, 
> errorThrown) {
>                                console.log('error throw');
>                                console.log(errorThrown);
>                        }
>                });
>
> the requested page can return  404 or 403 error codes
> but the errorThrown variable is ALWAYS undef...
> any idea ??
>

Reply via email to