Results 1 to 3 of 3

Thread: Resolved-Accordian Menu - persistence across pages

  1. #1
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resolved-Accordian Menu - persistence across pages

    1) Script Title:Accordion Content - Accordian Menu - Bullet List Accordian Menu

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

    3) Describe problem:

    The environment is vbAdvanced as a CMS for vBulletin. I've implemented the Bullet List Accordian Menu as a module to be displayed on each page including integration with vBulletin but not gone live with it.

    Question involves persistence, is this 'memory' shared between pages within a browser session or does each page have its own 'memory'?

    I'd like the menu to keep the same state (selection status) between pages within the application but it appears that each page is independent of the other.

    Thanks
    Mills
    Last edited by mwmills; 10-16-2008 at 10:10 PM.

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

    Default

    The cookie that contains the menu's state is stored within the root directory of your domain, so the same menu across multiple pages on that domain should share the same persistent settings. Now, a sub domain is considered a different domain (ie: sub.mysite.com versus mysite.com). Also, a menu across two pages is only considered the same one by the script if they carry the same CSS class name for its main container, or the part in red below:

    Code:
    ddaccordion.init({
    	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
    	contentclass: "categoryitems", //Shared CSS class name of contents group
    	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
            //etc
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. The problem was http://www.domain versus http://domain. Both were used interchangeably.

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
  •