What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Tutorial: Script update checking

Tutorial: Script update checking
Author: Message:
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: Tutorial: Script update checking
* Stigmata 's method takes up half the space

code:
function CheckForUpdates(foo)
{
var xmlhttpup = new ActiveXObject("MSXML2.ServerXMLHTTP");
     xmlhttpup.open("GET", "http://www.msgpluslive.net/scripts/view/309-Myspace-Manager/",true);
     xmlhttpup.onreadystatechange=function() {
          if (xmlhttpup.readyState==4) {
              var pos=xmlhttpup.responseText.indexOf('<span class="largefilename">Myspace Manager ');
            var ver=xmlhttpup.responseText.substring(pos+44)
            pos=ver.indexOf('</span><br />');
            ver=ver.substring(0,pos)
             
               Debug.Trace('Ver On Server: ' + ver + ' - Ver On Disk: ' + MyVer);
               if(ver > MyVer){ Toast('New Version Available!\r\n\r\nClick here to download');}
                if((foo) & (ver <= MyVer)){Toast('No New Updates Available!');}
          }
     }
xmlhttpup.send(null);
}



if foo == true, a toast popup will be displayed saying no update is available, else no toast popup.


is this a bad way to do it or something? because to me it seems like a lot less hassle and quicker etc...
11-11-2007 11:08 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tutorial: Script update checking - by -dt- on 11-11-2007 at 09:55 AM
RE: Tutorial: Script update checking - by Felu on 11-11-2007 at 10:03 AM
RE: Tutorial: Script update checking - by Matti on 11-11-2007 at 10:20 AM
RE: Tutorial: Script update checking - by user13774 on 11-11-2007 at 10:33 AM
RE: Tutorial: Script update checking - by -dt- on 11-11-2007 at 10:41 AM
RE: Tutorial: Script update checking - by Menthix on 11-11-2007 at 11:03 AM
RE: Tutorial: Script update checking - by Dempsey on 11-11-2007 at 05:03 PM
RE: Tutorial: Script update checking - by Rolando on 11-11-2007 at 05:08 PM
RE: Tutorial: Script update checking - by roflmao456 on 11-11-2007 at 09:37 PM
RE: Tutorial: Script update checking - by Quantum on 11-11-2007 at 10:00 PM
RE: Tutorial: Script update checking - by -dt- on 11-11-2007 at 10:38 PM
RE: Tutorial: Script update checking - by Stigmata on 11-11-2007 at 11:08 PM
RE: Tutorial: Script update checking - by markee on 11-11-2007 at 11:42 PM
RE: Tutorial: Script update checking - by -dt- on 11-12-2007 at 12:03 AM
RE: Tutorial: Script update checking - by Lou on 11-12-2007 at 02:04 AM
RE: Tutorial: Script update checking - by Volv on 11-12-2007 at 02:18 AM
RE: Tutorial: Script update checking - by Patchou on 11-12-2007 at 04:22 AM
RE: Tutorial: Script update checking - by NanaFreak on 11-12-2007 at 05:56 AM


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