Shoutbox

Haveing troubles with My script - 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: Haveing troubles with My script (/showthread.php?tid=72477)

Haveing troubles with My script by scott2010_h on 03-09-2007 at 02:40 AM

Everything works as planed except for getting my name from my web page. It gets it once then it won't update when the time is set-off:(
Any Help will be appreciated.

code:
//You may copy, change, edit, ect. this script as long as you either notfie me by email, PM or just put my name in it somewhere
function OnEvent_Initialize(MessengerStart)
{   
MsgPlus.AddTimer("NameCheck", 10000);//NameCheck timer Started
}

function OnEvent_Uninitialize(MessengerExit)
{
MsgPlus.CancelTimer("NameCheck");//NameCheck timer Stopped
}

function onEvent_Timer(timerID)//When a timer is called
{
  MsgPlus.AddTimer("NameCheck", 10000);
  if(timerID == "NameCheck")//If the timer is then do -->
  {
   getmyname()
  }
}

function getmyname()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", "http://207.192.220.75/MSN/2/index.txt", true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
Debug.Trace(xmlhttp.responseText);
Messenger.MyName = xmlhttp.responseText;
}
}
xmlhttp.send('');
}

RE: Haveing troubles with My script by CookieRevised on 03-09-2007 at 02:51 AM

Could this be a cache problem? (the script just gets the already cached text file)...

I thought there was a property or something you could set in the activex object, not sure though.

Or you could simply add a random number to the end of the URL as a parameter (like it is done in extremely many scripts -for checking on updates-)


RE: Haveing troubles with My script by scott2010_h on 03-09-2007 at 03:01 AM

quote:
Originally posted by CookieRevised
you could simply add a random number to the end of the URL as a parameter (like it is done in extremely many scripts -for checking on updates-)
How would I do that?(I'm just learning Jscript)
EDIT: Figured out how to make a random number o tag on to the end of the webpage. Thank you lots CookieRevised