Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onChange field submit to same form - how to obtain value of field

Status
Not open for further replies.

wluu

Programmer
Feb 21, 2003
7
CA
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(&quot;Group&quot;) %> -- this doesn't grab the value

...
<select name=&quot;Group&quot; class=&quot;inputbox&quot; size=&quot;1&quot; onChange=changeField()>
Response.Write &quot;<option value='P&H' selected>P&H</option>&quot;
Response.Write &quot;<option value='O&K'>O&K</option>&quot;
Response.Write &quot;<option value='BE'>BE</option>&quot;
Response.Write &quot;<option value='Dragline'>Dragline</option>&quot;

....

<script language = Jscript>
function changeField()
{
document.Createv1.action=&quot;gadget_n.asp&quot;; //this page is itself
document.Createv1.submit();
}

</script>
 
looks fine to me...are you closing the select? </select> =========================================================
while (!succeed) try();
-jeff
 
hmmm... don't know what I added/chnaged but it works now. It must have been very minor????? tks for looking at it none the less.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top