have you tried appending a random number to the end of the URL - it will bypass IE's cache and thus get pass the decay.

HTH

Alex

--------------------------------------------------
From: "John" <johndobso...@gmail.com>
Sent: Wednesday, March 23, 2011 6:15 PM
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Subject: [Proto-Scripty] help for a newbie with Ajax.PeriodicUpdater

Hi

I need an 'advert rotator' for a new site I'm working on, the idea is
that a page load triggers an ajax event to periodically request random
new ad banners from a PHP process on the server. Everything works fine
on Firefox3.6.16, Chrome 10.0.6 etc bit not on IE RC either full
strength or compatibility mode (Works just once, wont fetch  another
ad).

I'm at a loss as where to start debugging this set-up. The js code I'm
using is minimal and is as follows:

Event.observe(window, 'load', adserve);

function adserve(){
   new Ajax.PeriodicalUpdater( 'advert', '/ajax/adserve.php', {
method: 'get',
frequency: 5,
decay: 1}
)
};

This is included in an 'adserve.js' file which is included in my HTML
using a script tag. Any assistance will be greatly appreciated.

TIA - John

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.



--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to