This content has been marked as final.
Show 3 replies
-
1. Re: Accordion Widget Starting Closed
Newsgroup_User Sep 24, 2008 9:52 AM (in response to andrewmcgibbon)andrewmcgibbon wrote:
> I have added the following code to just below the DIV
> close tag and it didn't appear to help:
>
> var acc1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights:
> false });
> </script>
> <script type="text/javascript">
> var acc1 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: 0 });
> </script>
Your second JavaScript statement overwrites the first one. The options
should be passed to the Accordion constructor in the same statement like
this:
<script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: 0,
useFixedPanelHeights: false });
</script>
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
2. Re: Accordion Widget Starting Closed
andrewmcgibbon Sep 24, 2008 10:07 AM (in response to andrewmcgibbon)Hi David,
Thanks for the response, I changed it but it is still not working and is still behaving the same way. I think I must have screwed something else up.
Andy -
3. Re: Accordion Widget Starting Closed
andrewmcgibbon Sep 24, 2008 10:15 AM (in response to andrewmcgibbon)Actually, it works in Firefox but not IE.

