myatia
Programmer
- Nov 21, 2002
- 232
Hi,
I'm having a problem with a select statement that's being used as a navigation menu. When a page is selected from the menu and a "Go" image is clicked, the user should be redirected to the page selected. The code, given below, works fine in IE5+ and NN6+, but it just sits there in NN4.7 (and possibly other browsers I haven't tested yet.) Does anyone know what i have to do to get around this problem? Also, if anyone sees anything that might give other browsers problems, I'd appreciate knowing that as well.
Thanks much,
Misty
mgarrick@checkerboard.com
===============================================
<SCRIPT LANGUAGE="JavaScript">
<!--
function jump(page) {
window.location = page;
}
//-->
</SCRIPT>
<FORM NAME="jumpform">
<select name="pages" size="1" onChange="window.status=this.options[this.selectedIndex].text">
<option value="index.cfm?section=2" SELECTED>xxx
</option>
<OPTION VALUE="index.cfm?section=2&subsection=1">YYY
</option>
<OPTION VALUE="index.cfmsection=2&subsection=2">zzz
</option>
<OPTION VALUE="index.cfm?section=2&subsection=3">XYZ
</option>
</select>
<IMG SRC="images/go_button.gif" HEIGHT=16 WIDTH=25
onClick="jump(document.jumpform.pages.options[pages.selectedIndex].value)">
</FORM>
I'm having a problem with a select statement that's being used as a navigation menu. When a page is selected from the menu and a "Go" image is clicked, the user should be redirected to the page selected. The code, given below, works fine in IE5+ and NN6+, but it just sits there in NN4.7 (and possibly other browsers I haven't tested yet.) Does anyone know what i have to do to get around this problem? Also, if anyone sees anything that might give other browsers problems, I'd appreciate knowing that as well.
Thanks much,
Misty
mgarrick@checkerboard.com
===============================================
<SCRIPT LANGUAGE="JavaScript">
<!--
function jump(page) {
window.location = page;
}
//-->
</SCRIPT>
<FORM NAME="jumpform">
<select name="pages" size="1" onChange="window.status=this.options[this.selectedIndex].text">
<option value="index.cfm?section=2" SELECTED>xxx
</option>
<OPTION VALUE="index.cfm?section=2&subsection=1">YYY
</option>
<OPTION VALUE="index.cfmsection=2&subsection=2">zzz
</option>
<OPTION VALUE="index.cfm?section=2&subsection=3">XYZ
</option>
</select>
<IMG SRC="images/go_button.gif" HEIGHT=16 WIDTH=25
onClick="jump(document.jumpform.pages.options[pages.selectedIndex].value)">
</FORM>