Results 1 to 5 of 5

Thread: Simple tree menu help

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple tree menu help

    1) Script Title: Simple Tree menu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex1/navigate1.htm
    3) Describe problem:
    Currently we are using the tree menu for navigation and when the user clicks on a menu option it opens a new page and the menu is collapsed. Is there a way to keep the menu option expanded for that page?

    Example:
    Menu1
    Menu2
    Menu3
    Opt1
    Opt2
    Opt3

    If the user clicks Opt3 Under Menu3, it takes them to stuff.asp, on stuff.asp, I want to see,
    Menu1
    Menu2
    Menu3
    Opt1
    Opt2
    Opt3

    is there a way to do this?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Do you want everything the way it was at? Or only the page folder?
    Jeremy | jfein.net

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

    Default re

    what do you mean?

    When the site first loads the menu is there as

    Menu1
    Menu2
    Menu3

    If the user selects Menu3 it then expands as
    Menu3
    Opt1
    Opt2
    Opt3

    Then if the user selects Opt3 (for example) it takes them to a whole new page and this page has the menu as well. Instead of showing the menu as
    Menu1
    Menu2
    Menu3
    on the new page, I want to show the menu expanded with the menu option expanded so it would look like this on the Menu3 --> Opt3 page

    Menu1
    Menu2
    Menu3
    Opt1
    Opt2
    Opt3

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You could try to give the appropriate ul an id (like: <ul id="open'>), then have on pageload:
    onload="document.getElementById('open').style.display='inline'"
    Since the question which items should be visible on pageload depends on specific pages, you must provide more than one ul with an id.
    Just an idea. I don't really know the menu.
    -------
    Arie Molendijk.

  5. #5
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default re

    yeah, i've tried that and no joy. I even tried doing

    onload="expandContent("1")"

    and no joy

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
  •