Thank you.
On Jan 23, 5:53 am, Mike Alsup wrote:
> > Do you think that there is a way to get a return code, when uploading
> > file?
>
> >
> >
> >
>
> > $("form").ajaxSubmit ( {error: function () {alert('error')} );
>
> > Now because the upload is by using invisible iframe and not by XHR, I
> > think that I cannot get the error function to work.
>
> > Am I right?
>
> > I am using FireBug, and also when there is an error in the post, the
> > error function not trigger (the newest jQuery ver)
>
> Yeah, errors are very difficult, if not impossible, to detect with the
> iframe approach. If you really want to inspect the response you can
> use a 'complete' handler and then grab the responseText from the
> (mock) XHR object.
>
> Mike