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
36 / 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] xmlhttp cache problem - by Spunky on 08-13-2007 at 02:24 PM
RE: [?] xmlhttp cache problem - by matty on 08-13-2007 at 02:40 PM


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