Thanks for the clarification. -- Josh ----- Original Message ----- From: Mike Alsup To: jquery-en@googlegroups.com Sent: Friday, February 15, 2008 11:45 AM Subject: [jQuery] Re: ajax form plugin question
Shelane, Since it is not possible to upload files via ajax the form plugin manages the process with a hidden iframe technique. So you won't see the get/post trace in Firebug's console. However, callbacks *should* be called as expected. Can you post a link to the page in question? Josh, ajaxSubmit is used to submit a form immediately. ajaxForm prepares the form and invokes ajaxSubmit on your behalf when the user clicks the submit button. Mike On Fri, Feb 15, 2008 at 2:17 PM, Shelane <[EMAIL PROTECTED]> wrote: When a form is submitted - specifically with a file upload - with the ajax form plugin, firebug doesn't show a submission, nor any return. This is making it difficult to debug, hince the question. I know that my files are being uploaded, but the success function doesn't seem to be running: addDoc = function(data){ $('#docform').resetForm(); $('#formmodal').jqmHide(); alert(data); stripe('#documents'); removeDoc('#row' + doc); } fileValidate = function(formData){ if(!document.docform.attachment.value) return false; else alert('about to submit'); } $('#docform').ajaxForm({success: addDoc, beforeSubmit: fileValidate, dataType: 'json'}); Am I missing something.