Hi,
I've been sitting for a few hours now with a bug and can't seem to get
a fix for. It is for an existing site that is being fixed temporarily
and then going to be redeveloped in a few months.
My problem:
I am sitting with a form consisting of a drop downbox that fires a
javascript on the onChange event. The drop down box is populated out of
a database and the links are also built up from the database entries
that are selected.
I keep getting the same error message no matter what I try. Very
similar code is used in another page and there it works fine.
here's the link to the working page
http://www.liberty-ermitage.com/test...7&code=history
and this is the one that keeps giving errors
http://www.liberty-ermitage.com/test...87&tab=1&fund=
Due to legislation US citizens wont be able to follow those links
though.
Error message:
Mozilla Firefox 1.5.0.3 javascript console error msg: "goThere is not
defined"
Code:
in <head> section:
<script language="JavaScript" type="text/javascript">
.....
function goThere_1()
{
if(!document.theForm_1.theMenu_1.selectedIndex=="" )
{
window.open(document.theForm_1.theMenu_1.options[document.theForm_1.theMenu_1.selectedIndex].value,"_self","");
}
}
</script>
in the <body> section:
<form name="theForm_1" id="theForm_1">
<select name="theMenu_1" class="tahoma_"
style="font-size:10px" onChange="goThere_1()" id="theMenu_1">
<option selected value="">Related Funds:--
<%
drs3.movefirst
do until drs3.eof
dim strVar
dim strNew
strVar=trim(drs3("CURRENCY"))
select case strVar
case "USD"
strNew = "($)"
case "GBP"
strNew = "(£)"
case "EUR"
strNew = "(€)"
case "JPY"
strNew = "(¥

"
case Else
strNew = "(" & strVar & ")"
end select
Response.Write "<OPTION value=""prices_drill.asp?catID=" & _
drs3("CODE") & "&code=" & code & """>" & drs3("WebFundName") & " "
& strNew
drs3.movenext
loop
%>
<% End If %>
</SELECT>
</form>
any help would be greatly appreciated.
Thanks
Anthony