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!

drop down menu navigation 1

Status
Not open for further replies.

colly24

Technical User
Jun 27, 2002
11
US
Hi,
I'm trying to use a drop-down menu to link to various other pages. The menu should appear in a frames environment, but should call other base asp pages that may or may not include frames (some pages have them, some don't). I have the simple links working in the frames correctly but can't get them to fire correctly from the drop-down menu. I'm trying to get the pages to launch on selection of the item and not using a go to button.
The links i want to include are:
Code:
<a href="javascript: top.window.location.href = 'ExportMetrics.asp'">[ Export MS Excel ]</a> &nbsp; &nbsp; &nbsp; &nbsp;
            <a href="javascript:Refresh(); top.window.location.href = 'rptPrintable.asp'">[ Printable Version ]</a> &nbsp; &nbsp; &nbsp; &nbsp; 
            <a href="javascript:top.window.location.href = 'PlannedActualsMetrics.asp'">[ Metrics ]</a> &nbsp; &nbsp; &nbsp; &nbsp; 
            <a href="javascript:top.window.location.href = 'rptStats.asp'">[ Monthly Stats ]</a> &nbsp; &nbsp; &nbsp; &nbsp;
I have tried a few solutions, that i can post if required.
Any help would be great.
Cheers
 
In the document's head:
Code:
<script language="JavaScript">
function goToSite(loc){
   top.window.location = escape(loc);
} 
</script>
Then HTML like this:
Code:
<select name="pageJump" onChange="goToSite(this.value);">
<option value="[URL unfurl="true"]http://www.google.com">Google</option>[/URL]
<option value="rptPrintable.asp">Printable Version</option>
...
</select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top