I have a form that gives the "The page cannot be displayed" error when I click on the Submit button.. Don't know why it's doing this.... What I'm trying to do is have the form open up a URL with certain parameters, on Submit, upon a given menu selection. The form doesn't work with either of the two JavaScript functions - jumpto or jumpto1. Any ideas why this is happening? Solutions to the glitch will greatly be appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function jumpto1(form) {
var myindex=form.year.selected
Index
location=form.year.options
[myindex].
value;
}
function land(ref, target)
{ lowtarget=target.toLowerCa
se();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].loc
ation=loc;
};
}}}
}
function jumpto(menu)
{ ref=menu.year.options[menu
.year.sele
ctedIndex]
.value; splitc=ref.lastIndexOf("&"
);
target="";
if (splitc!=-1)
{loc=ref.substring(0,split
c); target=ref.substring(split
c+1,1000);
}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
</script>
</head>
<body>
<table width="90%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="middle"><form action="" method="post" name="form1">
<b><font size="-1" face="Arial, Helvetica, sans-serif">Select year:</font>
</b>
<select name="year">
<option value="proposals-archives.
asp?yr=200
3&sortby=c
ompany&ord
erby=ASC">
2003
<option value="proposals-archives.
asp?yr=200
2&sortby=p
roposal&or
derby=ASC"
>2002
<option value="proposals-archives.
asp?yr=200
1&sortby=s
ponsor&ord
erby=ASC">
2001
<option value="proposals-archives.
asp?yr=200
0&sortby=m
eeting&ord
erby=ASC">
2000
<option value="proposals-archives.
asp?yr=199
9&sortby=c
ompany&ord
erby=DESC"
>1999
<input name="submit" type="submit" value=Display onClick="jumpto1(this.form
)>
</select>
</form>
</td>
</tr>
</table>
</body>
</html>