I have and ASP driven site with a menu structure written in XML/XSL. This menu contains a list of "Chapters". Clicking on a Chapter would display a list of "Pages" within that Chapter. This is done with DHTML (show/hide div tags using the onclick event of the link - no reloading of the window). Also on this page are "Previous | Next" links that toggle thru the pages in a linear fashion, reloading the window with the appropriate page. All of this works fine. My dilemma is this:
When a page is loaded I expand the Chapter that the current page is part of and collapse all the other Chapters. I'd like to be able to maintain the state the user left the Chapters in from page to page. I'm stuck on how to get the expand/collapse logic (done in DHTML, not reloading pages) to merge with the XML menu. Any ideas?
When a page is loaded I expand the Chapter that the current page is part of and collapse all the other Chapters. I'd like to be able to maintain the state the user left the Chapters in from page to page. I'm stuck on how to get the expand/collapse logic (done in DHTML, not reloading pages) to merge with the XML menu. Any ideas?