Francesco Posted August 2, 2012 Share 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} Link to comment Share on other sites More sharing options...
ricktendo Posted August 2, 2012 Share Posted August 2, 2012 Thanks Link to comment Share on other sites More sharing options...
myselfidem Posted August 2, 2012 Share Posted August 2, 2012 (edited) Many thanks! Works fine now.Regards Edited August 2, 2012 by myselfidem Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 4, 2012 Share Posted August 4, 2012 added. Link to comment Share on other sites More sharing options...
Recommended Posts