Microsoft
Software
Hardware
Network
Question : Controlling a dynamically created div
So I found this script:
http://www.dynamicdrive.co
m/dynamici
ndex17/
ani
matedcolla
pse.htm
It is pretty nice and it helps me with a static page where all the code is "pre-written".
Problem comes when I try to use the createElement function to create a div and a link that uses the animated collapse code to expand and collapse the recently created div.
Firebug shows all the right code, but the div simply doesn't respond.
PS. When I create the div element I also specify the "animatedcollapse.addDiv('
xxx', 'fade=0,speed=400,group=yy
yy)" javascript
Answer : Controlling a dynamically created div
The problem is that the script initializes some required variables in its init method. Try calling animatedcollapse.init(); again after you added and addDiv'ed the elements. Works here.
Random Solutions
I have a Toshiba Satellite A105 Laptop, and Hard Drive From Dell Vostro 1500 w/ Win 7 wont boot?
Deploy Printer Drivers to WinXP Computers
CRM Backstop
WCF hosted on IIS: Why doesn't it show me the WCF method name and it's signature?
External Monintor won't work w/ Toshiba laptop; it USED to; fn (f5) doesn't "stick"
serial to USB adapter binds to which serial port?
TDSSand other malware - prevent and removal tips / thinking
Can I save a word document directly as PDF in asp?
Dell 1397 Wireless mini-card on Latitude E5500 won't connect to WAP
Service policy is in suspended mode