Results 1 to 3 of 3

Thread: Remote collapse the menu

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

    Default Remote collapse the menu

    1) Script Title: Glossy Accordion Menu

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

    3) Describe problem: This code is supposed to expand a menu form a remote link.
    HTML Code:
    <a href="target.htm?headerclass=index1,index2,etc">Target Page</a>
    Is there a way to collapse the whole menu when the page is accessed from a remote link?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm I'm a little confused- if you wish the menu to be collapsed fully initially, why not just set the lines in red below as follows inside your initialization code:

    Code:
    	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
    	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    	animatedefault: false, //Should contents open by default be animated into view?
    	persiststate: false, //persist state of opened contents within browser session?
    In other words, with defaultexpanded set to empty and persistence of any previously open headers disabled, the menu will always default to collapsed when viewed initially.
    DD Admin

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

    Default

    I use the menu to call the same page, so, as long as it is calling itself I want the menu to remain expanded, but if I navigate away and then return it should be collapsed since the data is repopulated with no filter.

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
  •