BB san wrote:
> 
> hey, you are right, the key point should be iFrame.
> I guess your file has successful uploaded.
> 
> The problem is your server responses to your iframe, not to your original
> page.
> that is why you don't see the POST action does not appear in Firebugs Net
> > XHR panel
> that is also why your success callback function get no data. (data passed
> to iFrame)
> 
> my English is bad, you can see the jquery form plug-in official side's
> description as below:
> 
> 【The iframe element is used as the target of the form's submit operation
> which means that the server response is written to the iframe. This is
> fine if the response type is HTML or XML[1], but doesn't work as well if
> the response type is script or JSON, both of which often contain
> characters that need to be repesented using entity references when found
> in HTML markup. 】
> see http://malsup.com/jquery/form/#code-samples
> 
> One more thing to say is, if your server response script code to iFrame,
> and the responsed script need some js lib (i.e. jquery), your will have to
> include all needed js file again, because iFrame includes no script lib at
> all by defaule.
> 
> this issue bother me as well.  :-(
> I am looking for solution for dealing this issue.
> 
> BB
> 
> 
Thanks for the response BB.
But this is the exact part of the documentation that I don't understand. Am
I supposed to place an iframe somewhere? How does jquery know which iframe
in the page is the correct one? How do I tell it which php file to send the
file to so I can process the file upload? This is what I don't understand.
Am I supposed to put the entire form (including the text field) within an
iframe?
The documentation is clear with examples for everything except file uploads
so I have no clue what I'm supposed to do :'(
-- 
View this message in context: 
http://www.nabble.com/Form-Plugin-with-file-upload-tp21181087s27240p21740403.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to