1) Script Title: Animated Collapsible DIV v2.01
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem:
i cant get this script to work once i have it inside a div that i populate using ajax. The script works fine if i have it in a plain html page but if i have a div that i populate using ajax(prototype) the div's do not collapse.
example
<div "collapsableDivsArea" ></div>
once i populate this div with the script using ajax, it does not work, i get an error that says this:
isTypeError: this.divholders[divid] is undefined
thanx!



Reply With Quote

Those lines caused the containing code to be executed when the DOM of the page has loaded (similar to when the page has loaded). That should include when you put the code in a function and explicitly invoke it, but apparently different browsers have different ideas on this.

Bookmarks