View Full Version : Step Carousel Persist:True not working

05-20-2010, 05:17 PM
1) Script Title: Step Carousel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

3) Describe problem: I have an online store that scrolls through items using the step carousel and when a user clicks for more information the page reloads with the information at the top and carousel at the bottom. I would like for it to stay on the same panel that it was on so the shopper doesn't have to scroll back through to where they were. I have persist:true set but still the issue. Any suggestions on what could be causing the persist not to stay. Not just my browser either does it in firefox IE on my computer and firefox on my friends atleast...not sure about anyone else. Any suggestions on what could be causing the persist to be interfered with if that is the problem? URL below:

URL: http://www.timelessbylesa.com/producttestpage.php?collection=Vintage


EDIT: Seems to have found the cause for it being messed up. My page also has the lightbox code on it (url: http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm) and calling to this javascript file:
<script type="text/javascript" src="js/prototype.js"></script>

Seems to be the issue. Now I just need to figure out how I can let them both exist I guess.....hmmm anyone have any ideas let me know.

If anyone knows a reason why prototype.js file and the stepcarousel.js file are causing the persist not to work let me know, thanks. Both seem to work fine other than the persist.

05-20-2010, 10:27 PM
Hmm the issue might simply have to do with the cookie used by Step Carousel Viewer not being side wide. To make it so, try adding the code in red to the following line inside the .js file:

document.cookie = name+"="+value+";path=/"

Hopefully that solves the problem, as this script should work harmoniously in general with Prototype. If there is a conflict, it might be hard to spot due to the complexities of both libraries.