PDA

View Full Version : Animated Collapse height variable



stjimmy
12-31-2007, 07:34 AM
1) Script Title: Animated Collapse

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

3) Describe problem: I am using AJAX to call external files into a DIV which is set as collapsable; without specifying a height, animated collapse "sets" it at the height of the first external file (the default one), making it cut off information in other called external files which are longer.

Wondering if there is a painless way for this script to allow for contraction/expansion of a div along with sliding it open/closed.

ddadmin
12-31-2007, 08:25 PM
You may need to manually update the "contentheight" property if the content is being fetched via Ajax. See this thread: http://www.dynamicdrive.com/forums/showthread.php?t=24159