perifluid
08-19-2007, 05:25 PM
1) Script Title:
Animated Collapsible DIV, and
AJAX Tabscontent
2) Script URLs on DD:
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe Problem:
I am trying to get these 2 scripts to work together.
I have an AJAX tabs panel, and on clicking a menu button, it fetches an other page within the site. Works very well.
But, now I am trying to fetch a page that has DD's Animated Collapsible DIV script in it (because the content is over a 100 words long, and I want to show just a teaser segment of a 100 words, with an "Read More" button).
The problem is that the fetched page doesn't work the way it is supposed to- the Animated DIV doesn't work, instead shows all the content in the expanded state. I can get it to work the first time after a fresh refresh (F5), but not after that. In fact, I got it to that state by making calls to the inititalize, for eg, calling: var collapse1=new animatedcollapse("dog", 1000, false) in the main page (calling page- where the AJAX script resides).
Any ideas on how I can get it to work repeatedly? This is supposed to be the 'crowning glory' of my site's content presentation, done mostly with DDs scripts!!
Thanks!
Animated Collapsible DIV, and
AJAX Tabscontent
2) Script URLs on DD:
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe Problem:
I am trying to get these 2 scripts to work together.
I have an AJAX tabs panel, and on clicking a menu button, it fetches an other page within the site. Works very well.
But, now I am trying to fetch a page that has DD's Animated Collapsible DIV script in it (because the content is over a 100 words long, and I want to show just a teaser segment of a 100 words, with an "Read More" button).
The problem is that the fetched page doesn't work the way it is supposed to- the Animated DIV doesn't work, instead shows all the content in the expanded state. I can get it to work the first time after a fresh refresh (F5), but not after that. In fact, I got it to that state by making calls to the inititalize, for eg, calling: var collapse1=new animatedcollapse("dog", 1000, false) in the main page (calling page- where the AJAX script resides).
Any ideas on how I can get it to work repeatedly? This is supposed to be the 'crowning glory' of my site's content presentation, done mostly with DDs scripts!!
Thanks!