Forum Moderators: open

Message Too Old, No Replies

DWCS3 Accordian not staying closed

problem with DWCS3 accordian

         

2reikis

9:10 pm on Jan 6, 2009 (gmt 0)

10+ Year Member



I have an accordian set in DWCS3 that will animate closed but then all divs open to the extent of the content within. The active div opens to it's pre-defined height which is good, but the inactive divs will close completely during the animation, then pop back open to show the content within (whether that's a little, or a lot). Strange thing is, putting the accordian on a test page, it works normally. The difference is, I'm adding the divs and their content dynamically in the production page (<snip>).

Another thing that bears mentioning is that the page works normally in Firefox and google's Chrome. So I guess my question is: How does IE treat dynamic content differently such that it breaks my page?

[edited by: eelixduppy at 3:14 pm (utc) on Jan. 7, 2009]
[edit reason] removed URL [/edit]

2reikis

11:02 pm on Jan 6, 2009 (gmt 0)

10+ Year Member



Fixed. I updated to Spry framework 1.6 which fixed the problem, but added a skip after the animation that was kinda annoying. I modified the call to create the object to turn off animation

var Accordion1 = new Spry.Widget.Accordion("Accordion1", {enableAnimation:false});

and am now happy with the result.

eelixduppy

3:14 pm on Jan 7, 2009 (gmt 0)



Cool, thanks for sharing and Welcome to WebmasterWorld!