Solved

Creating a drop down box that automatically leads to a different page

Posted on 2001-06-28
7
144 Views
Last Modified: 2013-12-24
I am trying to create a drop down menu that when the option is selected it will automatically send the browser to that page.  I am using FP2000, and would rather use HTML code then anything else.
0
Comment
Question by:SirMorbius
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

by:ClassyLinks
Comment Utility
Hello Sir.

If you need two boxes (combo boxes) example code can be found here:  http://javascript.internet.com/navigation/combined-menu.html

For just a single box, you can modify the code slightly so that it is only looking for one input.

Is that what you were looking for, or something a little different??
0
 

Author Comment

by:SirMorbius
Comment Utility
That is most of it, but I do not want them to have to click the "select" button.  I want them to pick the option from the drop down, and then it would automoatically move them to that page.
0
 
LVL 7

Expert Comment

by:ClassyLinks
Comment Utility
Gotcha!

What you want is something like this???

<form name="JumpMenu" >
<select size="2" name="Jump1" onchange="window.open(this.options[this.selectedIndex].value,'_self');" >
<option selected >Don't Pick me</option>
<option value='http://classylinks.ca' >ClassyLinks</option>
<option value='http://classythemes.com'>ClassyThemes</option>
<option value='http://mysite.classylinks.ca'>Cool ASP stuff</option>
</select>
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:SirMorbius
Comment Utility
Classy,
  When I try to import that code into my existing page, I get a single box, not a drop down.  If I click on one of the options, it does open a new window, just can't get it to go to the page I want it to.  Also, I need a drop down, not just a box with the options in it.  thanks for your help.
0
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 50 total points
Comment Utility
It is a drop down...just change the size to 1, like this:

<form name="JumpMenu" >
<select size="1" name="Jump1" onchange="window.open(this.options[this.selectedIndex].value,'_self');"
>
<option selected >Don't Pick me</option>
<option value='http://classylinks.ca' >ClassyLinks</option>
<option value='http://classythemes.com'>ClassyThemes</option>
<option value='http://mysite.classylinks.ca'>Cool ASP stuff</option>
</select>

Post your form here, and I'll help you make some changes to it to get it to work.
0
 

Author Comment

by:SirMorbius
Comment Utility
Works good.  Thanks Classy.
Morbius
0
 
LVL 7

Expert Comment

by:ClassyLinks
Comment Utility
NP...glad to help.

Thanks for the points!

cu next time.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now