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

Relational Select Menu

Posted on 1998-08-18
2
192 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
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…
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…

861 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