[jQuery] ajax form plugin question
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.