PDA

View Full Version : Expanding subheaders in accordion menu



dirkbaros
07-20-2009, 11:30 AM
1) Script Title: Accordion Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm

3) Describe problem:

I 'd like to have a subheader and its nested list expanded when a (nested) link inside it is clicked and the linked page is loaded. As it is, when a nested link is clicked and the linked page is loaded subheaders and their lists get collapsed although I can have the respective (to the loaded page) header -not the sub-header- expanded (by use of "?expandable=1").

Thanks in advance.

ddadmin
07-20-2009, 05:24 PM
Well, the remote URL method (http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm) of expanding a DIV can be used to expand not just a header, but a subheader inside it at the same time. The basic syntax is:


target.htm?headerclass=index1,index2,etc"

But something like:


target.htm?expandable=4&subexpandable=0

expands the 5th main header and the first sub header simultaneously. See the second example on this page (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm) for more info.

dirkbaros
07-24-2009, 04:09 PM
Thank you DD Admin.

Very helpful.

dirkbaros