Null
12-17-2007, 02:43 PM
Hi,
The folowing (small part)javascriptcode returns a hash in a pop-up:
unction serialize(s)
{
serial = $.SortSerialize(s);
alert(serial.hash);
};
</SCRIPT>
Now I want it's output in a formfield and NOT in a alert. I've tried this:
<form action="" method="post">
<input name="serial" id="serial" value="" />
<p class="submit alignleft"><input type="submit" onclick="serialize("sort3"); " value="Update" /></p>
</form>
So onclick (on the submit button) the value should be put into the field. But it aint working. (at the moment the onclick triggers the alert, wich does work)
How to fix this?
More info: (s) = the id of the divlist wich I want to serialize (get the hash output), so onclick="serialize("sort3"); get's the hash of this div.
Many thanks,
Null
The folowing (small part)javascriptcode returns a hash in a pop-up:
unction serialize(s)
{
serial = $.SortSerialize(s);
alert(serial.hash);
};
</SCRIPT>
Now I want it's output in a formfield and NOT in a alert. I've tried this:
<form action="" method="post">
<input name="serial" id="serial" value="" />
<p class="submit alignleft"><input type="submit" onclick="serialize("sort3"); " value="Update" /></p>
</form>
So onclick (on the submit button) the value should be put into the field. But it aint working. (at the moment the onclick triggers the alert, wich does work)
How to fix this?
More info: (s) = the id of the divlist wich I want to serialize (get the hash output), so onclick="serialize("sort3"); get's the hash of this div.
Many thanks,
Null