Gaston,
That's still too much code. What I was trying to convey is that you
do not need the submit handler at all. ajaxForm does all that for
you. You can replace that entire ready block with this:
$(document).ready(function(){
$("#videos").ajaxForm({target:"div#msg",resetForm:true});
});
ajaxForm does not submit the form when you call it. Instead it adds
the necessary event handlers and invokes ajaxSubmit at the appropriate
time.
Mike
> Yeah, I'm using that specific code and it works great. This is actually how
> it's set up right now:
>
> $(document).ready(function(){
> $("#videos").submit(function(){
> $("#videos").ajaxForm({target:"div#msg",resetForm:true});
> return false;
> });
> });
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/