I've set up a page here:
http://www.paperdemon.com/tests/commentsclass.php

log in with the following info:
login: t...@yahoo.com
password: p455w0rd

After Logging in, click on "Post a Comment" and type a message and select a
jpg image to upload. Then hit submit.

> In Firefox, when a file is attached, the beforeSubmit AND success
> handler are called. However, the POST action does not appear in
> Firebugs Net > XHR panel so it seems that the post is not sent. I
> figured out that the reason why my form is suddenly disappearing is
> because in my success callback it is trying to grab "message" from the
> responseXML but since the POST isn't really being sent, there is a
> blank response.

What I meant by this is since the POST didn't really get sent, responseXML
has nothing in it. When I do alert(message); it does not say 'null' (which i
think js would do if a var was null, right?). instead its just blank.


> File uploads do not use ajax, so you will not see an entry in the xhr
> panel.  Not sure what you mean by the 'blank response'.  Is the
> responseXML null?  Is the returned XML valid?


Well, the form plugin says it supports file uploads. I'm not sure how its
supposed to work. The documentation mentions something about an iframe but I
don't completely understand what it is I have to do in my code to get the
upload action to work.
(click on file uploads tab)
http://malsup.com/jquery/form/#code-samples

Thank you very much for your help!

-- 
View this message in context: 
http://www.nabble.com/Form-Plugin-with-file-upload-tp21181087s27240p21659989.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to