PDA

View Full Version : Accordian Content Script



babyewok
06-30-2009, 12:29 PM
1) Script Title: Accordion Content script (v1.7)

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

I would like to use BOTH collapseprev: true AND have an expand all link. However, when collapseprev is set to true, the expand all link (as per the demo example) doesn't work properly. When collapseprev is false, it works fine, so there must be a conflict between the two settings - what can I do to get then both to work properly? It is nice and tudy to collapse the previous div when yo open a new one, but it is also good to be able to open all divs at once should someone want to do so (I am using htis on an FAQ page)

ddadmin
06-30-2009, 06:09 PM
This is by design actually- the collapseprev setting when turned on basically says "only one content can be expanded at any time." There is no easy way to make an exception when expandall() is called at the moment unfortunately, since this behavior is embedded pretty deep inside the script.