What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] xmlhttp cache problem

[?] xmlhttp cache problem
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. [?] xmlhttp cache problem
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?
<Eljay> "Problems encountered: shit blew up" :zippy:
08-13-2007 02:24 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] xmlhttp cache problem
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.
08-13-2007 02:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On