Results 1 to 6 of 6

Thread: Disabling Values On A JumpMenu

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disabling Values On A JumpMenu

    I have some JumpMenu's on my HTML page, some of the fileds don't have any values but if they are selected they take the user back to the index page... Any ideas? Example is here: http://www.australianairtours.com.au/tours.htm...

    The text I am referring to is "Select A Tour ( )" and also on the first JumpMenu for example, "PREMIUM AIR TOURS"...

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Urgh... MacroMedia eval()-filled bloat.
    Also, spaces aren't allowed in element names, insofar as I am aware.
    Drop the MM_JumpMenu code and use this instead:
    Code:
    <select name="Australian_Tours_Menu" class="tourPlaceHeadings" onchange="if(this.value) parent.location.href=this.value;">
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do I need to remove the jump menu function at the top of the page?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You don't need to, but you should. It's useless.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok removed the text and am using your code... But the Menu still changes the empty fields and takes you back to the index of the site...

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try this.
    Code:
    onchange="if(this.value && this.value != this.options[this.selectedIndex].innerHTML) parent.location.href=this.value;">
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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