Drop-Down Nav menu error - HTML

This is a discussion on Drop-Down Nav menu error - HTML within the A Brief History of Cprogramming.com forums, part of the Community Boards category; onSubmit="location.href='_derived/nortbots.htm';return false;" Uhm, unless there's something special about frontpage extensions.. this bit of script is going to send you to ...

  1. #16
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    onSubmit="location.href='_derived/nortbots.htm';return false;"

    Uhm, unless there's something special about frontpage extensions.. this bit of script is going to send you to the same page every time.

  2. #17
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    but see FYB fixed the first menu, that works, and scince i copied the first and jus changed name/values as well as the form name and such, the scripts the same aside from targets so it should work.

    My theory is this:

    On menu one index is the first option, as Select has no value, so Jet Boat is in index's spot on a different menu, and somehow is linking back to the first menu, i just don't know where @.

  3. #18
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    I've had one on my site before, looks like this:
    Code:
    <form name="form_name" method="POST">
    
    <select name="select_list">
    
    <option selected>Select a Category:</option>
    <option value="URL_one">1</option>
    <option value="URL_two">2</option>
    </select>
    
    <input type=button onClick= "location = '' + document.form_name.select_list.options[ document.form_name.select_list.selectedIndex ].value;" value="Go">
    </form>

    all you have to do is replace the respective names for the form name and the list name and it should work just fine.

  4. #19
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Code:
    name="B2" onclick="window.navigate(document.frm2.Nav2.options[document.frm2.Nav2.selectedIndex].value)
    It used to have the same names as the first form stead of frm2 and Nav2, i just changed em and the form names to correspond, thnx for the help!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to create a drop down menu?
    By arian in forum C# Programming
    Replies: 5
    Last Post: 03-29-2009, 11:42 PM
  2. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 03:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21