Hi Aaron,
Thanks for the input.
I was using ajaxForm because I wanted to have two submit buttons
(preview and submit) and that option allowed me to have that.
I have a kindergarten grade level of understanding of js language, so
your explanation " ajaxForm() binds an event handler that (among
other things) calls ajaxSubmit(). ajaxSubmit() is where the form
submission actually happens." doesn't really make sense to me. If
ajaxForm calls ajaxSubmit via an event handler, then why it is
necessary to explicitly "call" ajaxSubmit?
Cheers,
Bruce
At 12:58 p.m. 11/09/2007, you wrote:
On 9/11/07, Bruce MacKay
<<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
submitHandler: function(form) {
$("#cform").ajaxForm(options);
}
This should be
submitHandler: function(form) {
$("#cform").ajaxSubmit(options);
}
ajaxForm() binds an event handler that (among other things) calls
ajaxSubmit(). ajaxSubmit() is where the form submission actually happens.
More details:
<http://www.malsup.com/jquery/form/#api>http://www.malsup.com/jquery/form/#api
--
Aaron Heimlich
Web Developer
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
http://aheimlich.freepgs.com