* 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...