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?