1) Script Title: Animated Collapsible DIV
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem:
I have the collapsible DIV in an ASP.NET page. It is generated within an UpdatePanel. When I toggle the animated DIV collapse, it works just fine until the UpdatePanel refreshes, which redraws the DIV.
At this point, clicking the link to toggle the DIV no longer collapses or expands the DIV. I narrowed down the problem by adding a link that re-adds the DIV like so (something already done in the HEAD on page load):
animatedcollapse.addDiv('Convo', 'fade=1')
animatedcollapse.init()
When I click that second link to call adddiv, it can collapse and expand again. So clearly by redrawing the DIV I am losing that setting. The problem is that it shouldn't require this every time.
Any help of a fix for this would be GREATLY appreciated!



Reply With Quote

Bookmarks