jquery.form submit problem
Since I can't get this posted to jquery.plugin forum, I will try here.
I am using jquery.form from http://www.malsup.com/jquery/form/.
I have to following for my javascript:
$(document).ready(function()
{
$("#emailForm").submit(function()
{
var options={ target: '#popupArea', beforeSubmit: showRequest,
success:showResponse};
$
(this).ajaxSubmit(options);
return
false;
});
});
I have a typical form, except I have a link with an onclick that calls
a function that, after some validation, finally calls:
document.getElementById("emailForm").submit();
I have the showRequest and showResponse functions set up, but they
never get called. I am assuming, at this point, that the submit event
is never getting bound. I am using jquery 1.2.2 and the latest for
jquery.form. What am I doing wrong?
brian