PDA

View Full Version : Switch Content Persist Problem



lmritech
10-28-2008, 09:47 PM
Script: Switch Content Script
http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm


When I use the switch content script on a web page I am working on (), the second section continues to be expanded even after deleting cookies, restarting the browser, and the problem also persists on different computers.

However, when I take the "instance.setPersist(true)" line out of my code, the problem stops. But I would like to keep the persist setting to true. This problem does not recur on any other pages where I use the script in the same way. Does anyone have any hints as to what might be going on?

Any and all help is very much appreciated.
Thanks.

Edit: I have also noticed that this problem does not occur when the url is typed directly into the address bar. e.g., the problem on my site only happens when going to http://www.lmri.ucsb.edu/events, clicking on "UC LMRI Annual Conference," and then clicking on "May 1-2, 2009 Conference."

ddadmin
10-28-2008, 09:48 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

ddadmin
10-29-2008, 08:43 PM
e.g., the problem on my site only happens when going to http://www.lmri.ucsb.edu/events, clicking on "UC LMRI Annual Conference," and then clicking on "May 1-2, 2009 Conference."

Please elaborate. I click on UC LMRI Annual Conference (http://www.lmri.ucsb.edu/events/09_conf/index.php), but then don't see the "May 1-2, 2009 Conference." reference that supposedly is a switch content.

lmritech
10-30-2008, 06:59 PM
sorry, the link is actually http://www.lmri.ucsb.edu/new/events. Thank you.