Try, Form.serialize( 'country_form')
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Broadbear Sent: Friday, March 09, 2007 7:25 AM To: [email protected] Subject: [Javawin] form serialize problem Hi, I am having problems serializing a form: <div id="create_country_pane" style="display:none;"> <form id="country_form"> <table> <tr><td>Name:</td><td><input type="text" name="name" id="country_name_input" size="56"/></td></tr> <tr><td>Population:</td><td><input type="text" name="population" size="46"/></td></tr> </table> <input type="button" value="Create Country" onClick="test('country_form')"/> </form> </div> <script type="text/javascript">loadManagementControls()</script> <script> function test(form) { var queryParameters = $(form).serialize(); $("outputSpan").innerHTML = queryParameters; } </script> When I select the "Create Country" button, the "outputSpan" innerHTML becomes "name=&population=". (Of course, I have entered values into the text inputs.) Why are the form field values being left out? (I have this working properly in another page, but I can't find the difference.) ...Mike ________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends. aspx&mkt=en-us>
_______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
