What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Update checker

Update checker
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Update checker
I think there's a problem with:
code:
xmlhttp.send(Math.round(Math.random()*99999));
because a "normal" GET query looks like "key=value&this=that", although I know that "page.php?81256" should work too...

Although, there's a much better way to make sure that the downloaded file is always the latest version from the server. The Win32 API function "DeleteUrlCacheEntryW" will make sure that the cached version of the requested page is removed before you execute the XmlHttp request.
code:
var sUrl = "http://arkanes-arkade.co.uk/XBox/ScriptVersion.txt";
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', sUrl); //Clear URL from cache
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", sUrl, true);
xmlhttp.send();
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-28-2008 05:51 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Update checker - by ArkaneArkade on 01-28-2008 at 04:37 PM
RE: Update checker - by Matti on 01-28-2008 at 05:51 PM
RE: Update checker - by ArkaneArkade on 01-28-2008 at 09:05 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