yahooman122
03-31-2009, 04:46 AM
1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
I need one of my content to be expanded by default but allow preservance. I noticed this update on the DD page,
Jan 25th, 07: to fix a bug with the defaultExpanded() feature not being honoured when persistence is enabled. Only applicable the first time the page is loaded within a browser session. Only .js file changed!
To me the bug is not fixed because I have the following set and it is not working:
<script type="text/javascript">
var instance=new switchcontent("switch-instance", "div")
instance.setStatus('<img src="/img/open.png" /> ', '<img src="/img/closed.png" /> ')
instance.setPersist(true, 7)
instance.collapsePrevious(false)
instance.defaultExpanded(0)
instance.init()
</script>
I cleared all cookies and cache and reload the page and the instance is not expanded. Can someone help?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
I need one of my content to be expanded by default but allow preservance. I noticed this update on the DD page,
Jan 25th, 07: to fix a bug with the defaultExpanded() feature not being honoured when persistence is enabled. Only applicable the first time the page is loaded within a browser session. Only .js file changed!
To me the bug is not fixed because I have the following set and it is not working:
<script type="text/javascript">
var instance=new switchcontent("switch-instance", "div")
instance.setStatus('<img src="/img/open.png" /> ', '<img src="/img/closed.png" /> ')
instance.setPersist(true, 7)
instance.collapsePrevious(false)
instance.defaultExpanded(0)
instance.init()
</script>
I cleared all cookies and cache and reload the page and the instance is not expanded. Can someone help?