Hi guys/gals,
I have a webpage which has a jscript function that submits to itself. I was just wondering how I would obtain the value of this changed field. Here is a sample of my code:
at the top of the page I have:
<%
sGroup = Request.form("Group" %> -- this doesn't grab the value
...
<select name="Group" class="inputbox" size="1" onChange=changeField()>
Response.Write "<option value='P&H' selected>P&H</option>"
Response.Write "<option value='O&K'>O&K</option>"
Response.Write "<option value='BE'>BE</option>"
Response.Write "<option value='Dragline'>Dragline</option>"
....
<script language = Jscript>
function changeField()
{
document.Createv1.action="gadget_n.asp"; //this page is itself
document.Createv1.submit();
}
</script>
I have a webpage which has a jscript function that submits to itself. I was just wondering how I would obtain the value of this changed field. Here is a sample of my code:
at the top of the page I have:
<%
sGroup = Request.form("Group" %> -- this doesn't grab the value
...
<select name="Group" class="inputbox" size="1" onChange=changeField()>
Response.Write "<option value='P&H' selected>P&H</option>"
Response.Write "<option value='O&K'>O&K</option>"
Response.Write "<option value='BE'>BE</option>"
Response.Write "<option value='Dragline'>Dragline</option>"
....
<script language = Jscript>
function changeField()
{
document.Createv1.action="gadget_n.asp"; //this page is itself
document.Createv1.submit();
}
</script>