Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select statement jump menu problem in NN4.7

Status
Not open for further replies.

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=&quot;JavaScript&quot;>
<!--
function jump(page) {
window.location = page;
}
//-->
</SCRIPT>

<FORM NAME=&quot;jumpform&quot;>

<select name=&quot;pages&quot; size=&quot;1&quot; onChange=&quot;window.status=this.options[this.selectedIndex].text&quot;>

<option value=&quot;index.cfm?section=2&quot; SELECTED>xxx
</option>

<OPTION VALUE=&quot;index.cfm?section=2&subsection=1&quot;>YYY
</option>

<OPTION VALUE=&quot;index.cfmsection=2&subsection=2&quot;>zzz
</option>

<OPTION VALUE=&quot;index.cfm?section=2&subsection=3&quot;>XYZ
</option>

</select>

<IMG SRC=&quot;images/go_button.gif&quot; HEIGHT=16 WIDTH=25
onClick=&quot;jump(document.jumpform.pages.options[pages.selectedIndex].value)&quot;>

</FORM>
 
Don't waste your time trying to make this work for NN4.7! NN4.7x is responsible for less than 5% of all browsers and is no longer supported. There's always a better way...
 
Netscape issue. I would try a different method if you have the option.
 
Another option like...?

:)
Misty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top