<form name="MyForm" action="nextpag e.asp" method="POST">
<select name="selectNam e" onChange="docum ent.MyForm.subm it">
<option>make a selection</option>
<option value = "one">one</option>
<option value = "two">two</option>
...
</select>
<input type="submit">
</form>
try something like this. Onclick is wrong because as soon as you click it
would send, without you chnaging anything.
Keep a submit button available for non JS users.
Does that help? If not, let us see some code and tell us exactly what you
want it to do.
Stu
"reneeccwes t" <re*********@ho tmail.com> wrote in message
news:9f******** *************** ***@posting.goo gle.com...
How can I simulate HTTP post request by JavaScript?
When I select from <SELECT> combo box. onClick will call JavaScript
function.
I want this function to send HTTP POST request with the selected index of
the combo box.
To do this, somehow the function must simulate HTTP POST request.
Thanks in advance.