View Full Version : Accordion Content default section not expanding

05-22-2008, 06:23 PM
1) Script Title: Accordion Content

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

3) Describe problem: The content section set as the default does not open when the page is loaded. You can see this at http://intranet.belmontday.org/intranethome - the 'Classrooms' header should be expanded to show 'Pre-Kindergarten, Kindergarten, Grade 1, etc...' below.

I have the latest copy of ddaccordion.js that includes the big fix for the 'defaultexpanded'. Any thoughts on what's wrong?

Note: there are a lot of extra line breaks in the source code - an unfortunate and unavoidable side-effect of the scripting engine this site is forced to use. Starting at about line 718, you'll see the reference to the external scripts (jQuery and DDAccordion), and the inline script where I've set the DDAccordion initial variables, including defaultexpanded: [0].

Thanks in advance!

05-22-2008, 07:52 PM
I just checked your page using IE7 and FF2, and in both browsers, the "Classrooms" header is expanded by default when the page loads. What browser are you seeing an issue with it not being open?

BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm