Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can you have more than one pull-down menu?

    Hi: I'm trying to redesign my pages to a more contemporary format. In designing a catalog, I thought I'd put a JAVA pull-down menu under my six product categories (violin, viola, cello, bass, bows & cases):

    Catalog - BestStudentViolins.com

    The first one, under violins, works beautifully. But when I put the second one in, under violas, I can't see where my code is wrong -- but it's not working. It pops over to something entirely different.

    Can anyone look at this and tell me what I'm doing wrong? If I can't get the second one right I certainly can't do the other four.

    TIA!!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,702
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Welcome, techfiddle.

    Quote Originally Posted by techfiddle View Post
    Hi: I'm trying to redesign my pages to a more contemporary format.
    Well, if that were the case you would use contemporary HTML and JavaScript, and most importantly, contemporary coding practices.

    Quote Originally Posted by techfiddle View Post
    The first one, under violins, works beautifully. But when I put the second one in, under violas, I can't see where my code is wrong -- but it's not working. It pops over to something entirely different.

    Can anyone look at this and tell me what I'm doing wrong? If I can't get the second one right I certainly can't do the other four.
    That is because you are using the exact same code for creating the selects and calling the same JS function over and over again. But looking at your code I suppose you don’t have much experience, so there is no way to explain to you what you could do better without rewriting the entire page myself/ourselves, so basically your question turns into a “please code this for me so that it works”. Unfortunately I don’t have the time and desire to do so at the moment. Let me just give you a hint: if you want to redesign your pages into a contemporary format, don’t use selects and javascript in the first place, use an HTML list with links and style it with CSS so that it looks like a dropdown.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •