Hotrod
12-14-2010, 05:57 PM
Switch Content Script II
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm
First: Excellent script, thanks.
I'm using it to display my email, so I run thru the database and write the subjects out to a page. When done the script iterates thru the divs on the page collapsing the content.
Everything works well, when I expand the subject the script retrieves the messages from the database and contracts the previously expanded message.
My problem is when I show about 200 or more subjects the asp page writes out fast but then the script has to iterate thru all the divs collapsing and that can add a couple of seconds. I would like to write out the page with the content contracted and I'm not sure how to go about it or even if it's possible.
Can anyone help.
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm
First: Excellent script, thanks.
I'm using it to display my email, so I run thru the database and write the subjects out to a page. When done the script iterates thru the divs on the page collapsing the content.
Everything works well, when I expand the subject the script retrieves the messages from the database and contracts the previously expanded message.
My problem is when I show about 200 or more subjects the asp page writes out fast but then the script has to iterate thru all the divs collapsing and that can add a couple of seconds. I would like to write out the page with the content contracted and I'm not sure how to go about it or even if it's possible.
Can anyone help.