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
    Jul 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Causing an collapsible menu to stay expanded on the fly

    Hi folks,

    Got a question. As you know, you can use JavaScript to create collapsible / expandable content, which is handy for tree menus and organizing information on the page. Here's my problem. When I expand a menu with a link in it, and then click the link to go to a new page, and then hit the back button, my menu has collapsed again. In other words, the menu collapses automatically when the page refreshes / reloads. I want it to stay open on the fly.

    Obviously, there are a couple of ways to solve this... one is to open the link in a new window, the other is to have the menu be in a frame... unfortunately, neither of those will be practical with this particular application.

    What I'm hoping to find is a script that can somehow "remember" its expanded state so that when I click the back button, I'm right back at the expanded menu where I started.

    Can it be done?

    - Brendan

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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