Shoutbox

[?] xmlhttp cache problem - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] xmlhttp cache problem (/showthread.php?tid=76748)

[?] xmlhttp cache problem by Spunky on 08-13-2007 at 02:24 PM

For some reason this xmlhttp request is denied and I can't figure out why.
it works if I change the url to 'http://127.0.0.1:8000/admin.cgi?mode=viewxml'. I need the random number else the page doesn't update properly because it's cached. It's always worked before. And adding '&num=<number>' in the address bar in IE works =/

code:
function OnEvent_Initialize(MessengerStart){
    var i = Math.round(9000*Math.random());
    var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.open('GET', 'http://127.0.0.1:8000/admin.cgi?mode=viewxml&num='+i,false);
    xmlhttp.send('');
    var sString = xmlhttp.responseText;
    sString = sString.replace(/></gi,">\n<");
    sString = sString.split("<!ELEMENT TITLE (#PCDATA)>]>");
    sString = sString[1];
    Debug.Trace(sString);
}

Any ideas?

RE: [?] xmlhttp cache problem by matty on 08-13-2007 at 02:40 PM

Going back to my argument with markee about this type of thing.

matty's reply to Request for Random Phrase Generator

Look at the DeleteUrlCacheEntryW function.