For the second argument use $(form).serialize()

You should also use onsubmit="return CheckForm0(this);"
although the best practice would be to remove the inline script and
bind
the submit event like this:
 $('form').submit(function(){
 //do your ajax here and return false
});

On Feb 10, 8:14 pm, Tim Johnson <t...@johnsons-web.com> wrote:
> On Tuesday 10 February 2009, James wrote:> The second parameter (where you 
> have 'form') is suppose to be a JS
> > object like:
> > {name:form.myName, email:form.email, phone:form.phone}
>
>  Potentially, 'form' could have hundreds of elements and in
>  reality, does. So how to convert the 'form' object into a JS
>  object? I've worked with another framework that does that
>  'auto-magically'. Could you refer me to an example of how to
>  do that? And I will research it as well :-) not asking you to do
>  my homework for me.
>  thanks
>  tim

Reply via email to