Results 1 to 3 of 3

Thread: Drop Down Menu w/ Descriptions

  1. #1
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Drop Down Menu w/ Descriptions

    http://www.dynamicdrive.com/dynamici...bodescribe.htm

    I would like to modify this script to have the output appear in an inline frame (called "inline") in my current document rather than navigate to a new URL, which seems to be the default mode. I'm not a code writer, but I suspect that a slight modification of the following piece of code in red will do the trick. Any suggestions?
    ================
    function jumptolink(what){
    var selectedopt=what.options[what.selectedIndex]
    if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
    window.open(selectedopt.value)
    else
    window.location=selectedopt.value
    ================
    By the way, I have set all of my menu values to include 'target="inline"'

    Thanks for any help
    Last edited by navaro; 04-16-2005 at 12:45 AM. Reason: highlight main problem area

  2. #2
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks anyaway, but a little digging in the JK JavaScript Reference yielded the answer. I was looking for 'parent.inline.location=... in lieu of 'window.location=...'
    Works great!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't look now but, oops you are a code writer. At least that is how it starts . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •