arbel
08-15-2007, 02:04 PM
Hello,
I'm trying to have a collapsable div work inside an ajax Tab Div.
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
Everything works fine if the expandable/collapsable div is inside the default div (the one in the main page). But only as long as you don't change tabs, and load a different page inside the div. If you do and you go back to the original page it stops working.
I think the problem is with the location of this code:
<script type="text/javascript">
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse2=new animatedcollapse("cat", 800, true)
</script>
But I couldn't find out how to solve it.
I've uploaded an example here:
http://www.arbel-designs.com/script_problem/demo.htm
Any help would be greatly appreciated.
Idan
I'm trying to have a collapsable div work inside an ajax Tab Div.
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
Everything works fine if the expandable/collapsable div is inside the default div (the one in the main page). But only as long as you don't change tabs, and load a different page inside the div. If you do and you go back to the original page it stops working.
I think the problem is with the location of this code:
<script type="text/javascript">
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse2=new animatedcollapse("cat", 800, true)
</script>
But I couldn't find out how to solve it.
I've uploaded an example here:
http://www.arbel-designs.com/script_problem/demo.htm
Any help would be greatly appreciated.
Idan