Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-06-28
7
Medium Priority
?
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6234806
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
ID: 6235002
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
ID: 6235151
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
Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

 

Author Comment

by:SirMorbius
ID: 6235563
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 200 total points
ID: 6235600
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
ID: 6235719
Works good.  Thanks Classy.
Morbius
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6235744
NP...glad to help.

Thanks for the points!

cu next time.
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

715 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