Results 1 to 3 of 3

Thread: Collapse the accordian menu?

  1. #1
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Collapse the accordian menu?

    1) Script Title: Glossy Accordion Menu

    2) Script URL (on DD):http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    3) Describe problem: I am using the menu to filter a large dataset by navigating to the same page but having different querystrings that serve to filter the data. This works perfectly. But if I leave the page and come back, the data is retrieved without any filters - which is correct. The issue is that the menu is still expanded to the last selection. Is there a setting or function that would collapse the menu when you leave the page, even though the session has not terminated?

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I not sure if I understand your issue correctly, but maybe you just need to set the persiststate to false in this line:
    Code:
    persiststate: false, //persist state of opened contents within browser session?

  3. #3
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Using persiststate: false collapses every time. I only want to collapse all if the page is being loaded from a different page, not being loaded from itself. There are instructions for expanding a header from a remote link(<a href="target.htm?mypets=0">Target Page (1st header expanded by default)</a>) and it is suggested that you can also collapse that way but I dont know what the syntax is.

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
  •