I would not have been able to post the page since it¹s an internal app. However, I commented out the $('#docform').ajaxForm(); When it submitted the form as normal, I was able to see what the server was returning and there was an error in the JSON. That is now fixed and I¹m working on the next step. So, ajaxForm is working just fine beautifully in fact.
On 2/15/08 11:45 AM, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > 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. > > > > >