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
Solved

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

Posted on 2001-06-28
7
147 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
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

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 make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
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…

790 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