Francesco Posted August 2, 2012 Posted August 2, 2012 FixIn aboutupdate.js replacefunction CheckForUpdate(){ position="aboutupdate.js"; whatfunc="CheckForUpdate()"; var iVersion, lVersion; UpdateAvailable=false; ShowUpdate();// if (!loadXMLDoc("http://www.internetepicenter.com/wpi.xml",ExtractUpdateInfo)) if (!loadXMLDoc("http://www.wpiw.net/downloads/wpi.xml",ExtractUpdateInfo)) { alert(getText(txtUpdateError)); HideUpdate(); return; } Pause(2,0); iVersion=ShortVersion.split("."); lVersion=UpdateVersion.split("."); if (lVersion[0]>iVersion[0]) UpdateAvailable=true; else if (lVersion[0]==iVersion[0] && lVersion[1]>iVersion[1]) UpdateAvailable=true; else if (lVersion[0]==iVersion[0] && lVersion[1]==iVersion[1] && lVersion[2]>iVersion[2]) UpdateAvailable=true; else UpdateAvailable=false; FillInUpdate(); document.getElementById("Btn_DownloadUpdate").disabled=!UpdateAvailable; // The opposite}with function CheckForUpdate(){ position="aboutupdate.js"; whatfunc="CheckForUpdate()"; UpdateAvailable=false; ShowUpdate(); if (!loadXMLDoc("http://www.wpiw.net/downloads/wpi.xml",ExtractUpdateInfo)) { alert(getText(txtUpdateError)); HideUpdate(); return; } Pause(2,0); UpdateAvailable=fileVersionGreaterThan(UpdateVersion,ShortVersion); FillInUpdate(); document.getElementById("Btn_DownloadUpdate").disabled=!UpdateAvailable; // The opposite}
myselfidem Posted August 2, 2012 Posted August 2, 2012 (edited) Many thanks! Works fine now.Regards Edited August 2, 2012 by myselfidem
Recommended Posts