Did not work.
Date: Fri, 9 Mar 2007 09:01:54 -0500From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
Re: [Javawin] form serialize problem
Try, Form.serialize( ‘country_form’)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike
BroadbearSent: Friday, March 09, 2007 7:25 AMTo: [EMAIL PROTECTED]: [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!
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy!
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