Mike thanks a lot on all the help. : D

It works like a charm... sorry I hadn't understood what you were  
saying. Man it's a beauty!!

-gaston

On Feb 8, 2007, at 11:22 AM, Mike Alsup wrote:

> 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/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to