Solved

Relational Select Menu

Posted on 1998-08-18
2
195 Views
Last Modified: 2008-03-17
http://members.home.net:80/kerrie/insurance/index.html

I'm sort of confused with this relational thang!

I need to alert if user selects an article but no month "Select month"...  

I have succeeded with a alert if user selects no article (SelectMenu.SelectPrimary) but am getting confused with working with (SelectMenu.SelectSecondary).

As always, thanks for the advice...Kerrie
0
Comment
Question by:kerrie
[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
2 Comments
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1269301
OK, here is the corrected code.  I'm just changing the function changePage():

function changePage()
{
 menuNum = document.SelectMenu.SelectPrimary.selectedIndex;
 if (menuNum == 0)
  {alert("Please select a category from the menu.");
   document.SelectMenu.SelectPrimary.focus();
   return;
  }
 else
  {i = document.SelectMenu.SelectSecondary.selectedIndex;
   if (i==0)
     {alert("Please select a month from the menu.");
      document.SelectMenu.SelectSecondary.focus();
      return;
    }
   else
    window.location.href = url[i];
  }
}

That should od it for you!
-Josh
0
 

Author Comment

by:kerrie
ID: 1269302
Thank you so much - sorry the code was such a mess.  Have a great night... Kerrie
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 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