Triynko
07-29-2011, 06:40 PM
1) Script Title:
Bullet List Accordion Menu with nested levels
(ddaccordion.js)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm
3) Describe problem:
The open/closed state is not retrieved properly for nested menus.
The working example is a bit contrived, and works only coincidentally because the nested menu happens to be the second item in the second top-level menu (i.e. the expanded index for both the top-level menu and submenu are both "1").
The state saving mechanism doesn't work with nested levels when the header names are ending sub-strings of one another (e.g. "expandable" and "subexpandable". If you were to use the given example menu and submenu header names, then if that sub-menu was the third item, instead of the second, you'd see that after clicking it and refreshing the page that the 3rd top-level menu would suddenly be open, instead of the 2nd one, in which the nested menu was clicked.
Can someone confirm that this is a problem?
Bullet List Accordion Menu with nested levels
(ddaccordion.js)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm
3) Describe problem:
The open/closed state is not retrieved properly for nested menus.
The working example is a bit contrived, and works only coincidentally because the nested menu happens to be the second item in the second top-level menu (i.e. the expanded index for both the top-level menu and submenu are both "1").
The state saving mechanism doesn't work with nested levels when the header names are ending sub-strings of one another (e.g. "expandable" and "subexpandable". If you were to use the given example menu and submenu header names, then if that sub-menu was the third item, instead of the second, you'd see that after clicking it and refreshing the page that the 3rd top-level menu would suddenly be open, instead of the 2nd one, in which the nested menu was clicked.
Can someone confirm that this is a problem?