Yo're right. I'm uploading files with ajax. Thank you for your answer.
I will find another way to handle errors.

Goran

On Mar 7, 11:46 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> >  I've noticed that if i define error callback function within the
> >  options parameter of ajaxForm, it is called only if request is failed
> >  (if there is no response from provided url). When i return some http
> >  error from my serverside script (like 404, 401...) success callback is
> >  called.
>
> >  I have habit to treat those returns as errors, because $.ajax treat
> >  them like that (only when http ok response is returned, success
> >  callback is called, and there is some other response (404,403,401)
> >  error callback is called.
>
> >  Is there any chance that this will be corrected, or i'm missing the
> >  point
>
> That will happen if you are uploading files.  Is that the case?  The
> file upload logic does not use ajax and there is really no way to
> determine the status of the server response.
>
> Mike

Reply via email to