[jQuery] Re: Form Plugin with file upload
Thank you Mike for taking the time to trouble shoot this with me. I really appreciate it. Susie BogusRed Sahim http://www.PaperDemon.com On Thu, Feb 19, 2009 at 3:58 AM, Mike Alsup mal...@gmail.com wrote: Hooray! I'm so happy its fixed!!! Excellent, Susie. So glad to hear it!
[jQuery] Re: Form Plugin with file upload
Hi Mike, I took out the duplicate binding that was at the bottom of the page. but the file upload still doesn't work and no part of the submit goes through. Susie BogusRed Sahim http://www.PaperDemon.com On Mon, Feb 9, 2009 at 4:46 PM, Mike Alsup mal...@gmail.com wrote: Thank you again for working with me on this! I really appreciate it. Hopefully we'll get to the bottom of this. Susie BogusRed Sahimhttp://www.PaperDemon.com One thing to do right away is to get rid of the duplicate submit binding code. You test page has an inline script block which calls ajaxForm.
[jQuery] Re: Form Plugin with file upload
I FIXED IT I FIXED IT I FIXED IT I FIXED IT I FIXED IT *jumps up and down for joy* Ok there were two problems. FIRST problem: In my beforeSubmit option I was actually getting rid of the form before the plugin had a chance to create the iframe and submit it properly: beforeSubmit:function(formData, jqForm){ *$('#postcomment').html('div class=loadingLoading.../div');* return true; }, Since my form is inside #postcomment, it was getting rid of the form. For some reason, the form submits fine if its just plain text. Probably because the submit action of text is quicker than a jquery.html() function. SECOND problem: The second problem was that I needed to change my input button from a type=submit to a type=button. This is because after I removed the line mentioned in problem 1, the form actually goes through the regular non-ajax submition phase. Hooray! I'm so happy its fixed!!! Susie BogusRed Sahim http://www.PaperDemon.com On Wed, Feb 18, 2009 at 7:51 PM, Susie Sahim bogus...@paperdemon.comwrote: Hi Mike, I took out the duplicate binding that was at the bottom of the page. but the file upload still doesn't work and no part of the submit goes through. Susie BogusRed Sahim http://www.PaperDemon.com On Mon, Feb 9, 2009 at 4:46 PM, Mike Alsup mal...@gmail.com wrote: Thank you again for working with me on this! I really appreciate it. Hopefully we'll get to the bottom of this. Susie BogusRed Sahimhttp://www.PaperDemon.com One thing to do right away is to get rid of the duplicate submit binding code. You test page has an inline script block which calls ajaxForm.
[jQuery] Re: Form Plugin with file upload
Thank you Mike for the quick response. I uploaded your latest version and am experiencing the same problem I had with v. 2.16 text only works just fine. using image attachment the form data does not get saved on the php end. the ajaxSubmit() makes it to the success call back even though it wasn't successful and my div ends up empty instead of containing the text sent back from my php script. Thank you again for working with me on this! I really appreciate it. Hopefully we'll get to the bottom of this. Susie BogusRed Sahim http://www.PaperDemon.com On Sun, Feb 8, 2009 at 7:12 PM, Mike Alsup mal...@gmail.com wrote: I just upgraded the plain page to the latest version of jquery and the form plugin. And I noticed that with the new version, it does not make it to the success callback and you'll see this when you submit the form it gets stuck on the loading... text This was likely a bug fix of some kind. But still my file uploads are not working in ajax. What should my next steps be? Susie BogusRed Sahimhttp://www.PaperDemon.com Hi Susie, Looks like I had a bug in that latest version of the plugin. Could you grab v2.21 and upload it to your test location? I can't do much debugging with the current one. http://www.malsup.com/jquery/form/jquery.form.js Thanks. Mike
[jQuery] Re: Form Plugin with file upload
Mike, thank you so much for your patience with me on this one. I've created a simplified version of this page taking out all of the css and unnecessary javascript. all that is there is jquery, form plugin, and the few functions used for the page: http://www.paperdemon.com/tests/comments_plain.php I still get the same behavior. File upload works fine in non-AJAX. Plain text comments work fine in AJAX. As soon as you add the file upload, it has a cow and doesn't properly submit in the AJAX environment. I just upgraded the plain page to the latest version of jquery and the form plugin. And I noticed that with the new version, it does not make it to the success callback and you'll see this when you submit the form it gets stuck on the loading... text This was likely a bug fix of some kind. But still my file uploads are not working in ajax. What should my next steps be? Susie BogusRed Sahim http://www.PaperDemon.com On Mon, Feb 2, 2009 at 8:14 AM, phicarre gam...@bluewin.ch wrote: If I resume the situation : text fields file field $_POST $_FILES Remark -- filledfilled empty filled abnormal - filled empty filled normal filled- filled empty normal - - empty empty normal On 30 jan, 19:06, phicarre gam...@bluewin.ch wrote: Hi Mike, This thread seems to be similar to my problem submitted by email (subjet: about url) On 30 jan, 18:37, Mike Alsup mal...@gmail.com wrote: No, you are not supposed to do anything at all with the iframe. The plugin handles all of that for you. I'll try to take a look at your page tomorrow. Well, I have to admit that I'm not sure why your page isn't working. However, I did create a very simple test case here: http://jquery.malsup.com/form/file-test3.html This page has a file input and a text input and the form is submitted to http://jquery.malsup.com/form/test-xml.php which you can see returns the exact same response as your server (I think). Could you create a simple test case like this and run it on your server? Mike