Forum Moderators: open

Message Too Old, No Replies

slideshow not autoscroll in IE properly

slideshow problem in IE

         

bluegorilla

4:10 pm on Sep 13, 2006 (gmt 0)

10+ Year Member



Hello,

I have a slideshow that requires that an Ad be spliced into every 5th frame of the show (the ad is a different file - no frames are being used) and is set in a Velocity evironment.

Autoscrolling fails in IE but works fine in Firefox.


function rotater() {
if ($page == 5 ¦¦ $page == 10){
location.href="$link.setRelative('/slideshow/layout/jumboad.vm')?nextPage=$!{nextPage}";
}
timerID = setTimeout('location.href="$request.requestURI?page=$nextPage&ap=1"', 5000);
}

link code
<a href="#" onClick="rotate();">

Only in IE - when using the location.href to change the slides on a setTimeout - it does not recognize the refering page, it is like writing a new url into the address bar each time. Yet Firefox does not have a problem seeing the refering page. So that when it finally gets to Jumbo Ad page it is unable to remember the referer and send it to the next slide when the ad is done.

the code for the Jumbo Ad page that sends it to next slide is:


var rotatetime = 5000;
function rotate() {
timerID = setTimeout('window.location.replace("$referer.replaceAll( "page=5", "page=$np" )")', 5000);
}

Any thoughts on a reason and/or fixe would be helpful.
I hope i presented a clear picture.

Thank you in advance.

bluegorilla

3:30 pm on Sep 18, 2006 (gmt 0)

10+ Year Member



Problem resolved, moved almost all JS off page to a linked js file and made some other tweaks.