Fix for me and IE booth being idiots.

Added a random parameter to the xml-rpc call to prevent IE caching.
This commit is contained in:
Anders Betnér 2006-03-31 21:45:38 +00:00
parent 422f0841c2
commit 74ab93a851

View File

@ -3,10 +3,10 @@ Event.observe(window,'load',initStatus);
var UPDATE_FREQUENCY = 5000; // number of ms between updates
function initStatus(e) {
new Ajax.Request('xml-rpc?method=stats',{method: 'get',onComplete:rsStats});
new Ajax.Request('xml-rpc?method=stats&iefix='+Math.random(),{method: 'get',onComplete:rsStats});
window.setInterval(function () {
new Ajax.Request('xml-rpc?method=stats',{method: 'get',onComplete:rsStats});
new Ajax.Request('xml-rpc?method=stats&iefix='+Math.random(),{method: 'get',onComplete:rsStats});
},UPDATE_FREQUENCY);
}