TonyV
08-13-2003, 04:37 PM
How do you pass a parameter using javascript to duplicate a button passing values? For example in the following form, the values of ServerAddress and LogOnChoice will be sent in the url with the submit button. How do you send these variables when you use the window.open below.
<FORM ACTION="../cgi-bin/cgiInterNetMath.exe/Manager" METHOD="GET" name="LoggingOn">
<input type=hidden name=ServerAddress value=<#ServerAddress>
<SELECT NAME="LogOnChoice" size="1">
<OPTION SELECTED VALUE="USER">Student
<OPTION VALUE="MANAGER">Manager/Teacher
<OPTION VALUE="GENERALMANAGER">General Manager
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Subscriber Log On" name="LogOnButton" >
<input name="LogOn" type="SUBMIT" class="ppbuttonsmall" onClick="window.open('/cgi-bin/mathhtm/Managers.htm');" value="Log On">
Thanks for any help.
<FORM ACTION="../cgi-bin/cgiInterNetMath.exe/Manager" METHOD="GET" name="LoggingOn">
<input type=hidden name=ServerAddress value=<#ServerAddress>
<SELECT NAME="LogOnChoice" size="1">
<OPTION SELECTED VALUE="USER">Student
<OPTION VALUE="MANAGER">Manager/Teacher
<OPTION VALUE="GENERALMANAGER">General Manager
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Subscriber Log On" name="LogOnButton" >
<input name="LogOn" type="SUBMIT" class="ppbuttonsmall" onClick="window.open('/cgi-bin/mathhtm/Managers.htm');" value="Log On">
Thanks for any help.