Solved

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

Posted on 2001-06-28
7
148 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 50 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

749 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