brendan
07-19-2004, 01:34 PM
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
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