[jQuery] Re: data: $(#contact_form).serialize(),

2009-07-17 Thread robotwink
Hello, I tried for hours and no luck. Here's my code: http://stikked.com/view/4d9c1242 I would really appreciate if anyone can tell me why $ (#contact_form).serialize() is always returning empty string. On Jul 16, 2:26 pm, James james.gp@gmail.com wrote: Could you define not working?

[jQuery] Re: data: $(#contact_form).serialize(),

2009-07-17 Thread Theodore Ni
It is because you get rid of the form when you replace the message inside #form before calling serialize(). Move this line $(#form).html('Please wait...'); below everything else, and serialize() will no longer return empty. Ted On Fri, Jul 17, 2009 at 2:54 PM, robotwink robotw...@gmail.com

[jQuery] Re: data: $(#contact_form).serialize(),

2009-07-17 Thread robotwink
Thank you so much, that solved the problem. On Jul 17, 3:04 pm, Theodore Ni zyl...@gmail.com wrote: It is because you get rid of the form when you replace the message inside #form before calling serialize(). Move this line     $(#form).html('Please wait...'); below everything else, and

[jQuery] Re: data: $(#contact_form).serialize(),

2009-07-16 Thread James
Could you define not working? Are there any error messages? Is $(#contact_form).serialize() not giving the right values? Is the AJAX request not being sent? Is there no response coming back from the AJAX request? Try adding an 'error' callback also to see if it gets called. On Jul 15, 6:24 pm,