I could REALLY use a hand with this one. This simple little Javascript
won't work in Netscape. Here's the complete form (with VBScript tags) and
script:
<Script language="JavaScript">
<!--
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
dodument.location.href=form.select.options[index].value;}}
//-->
</SCRIPT>
<form name="form1">
<SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1">
<option value="calc.asp" <% if func = "none" then response.write
"SELECTED"%>>Select a Function</option>
<option value="calc.asp?func=cr" <% if func = "cr" then
response.write "SELECTED" %>>Conversion Rate</option>
<option value="calc.asp?func=cpv" <% if func = "cpv" then
response.write "SELECTED" %>>Cost Per Visitor</option>
<option value="calc.asp?func=cpc" <% if func = "cpc" then
response.write "SELECTED" %>>Cost Per Customer Acquired</option>
<option value="calc.asp?func=ppc" <% if func = "ppc" then
response.write "SELECTED" %>>Pay Per Click Goal</option>
</select>
</form>
Again, the problem is that the JavaScript function 'goto( )' is not working
in Netscape.
I should mention... this seemed to work the first time the user selects an
item from the dropdown list. But it ONLY works the first time.
Check it out:
http://www.thecrookstons.com/roi/calc.asp
Thanks,
Casey