Log in

View Full Version : Resolved-Accordian Menu - persistence across pages



mwmills
10-16-2008, 07:56 PM
1) Script Title:Accordion Content - Accordian Menu - Bullet List Accordian Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-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

ddadmin
10-16-2008, 09:26 PM
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:


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

mwmills
10-16-2008, 10:09 PM
Thank you. The problem was http://www.domain versus http://domain. Both were used interchangeably.