O.P. Multiple errors every time it tries to connect
Here is the code around one (I have VS installed):
function UpdateCheck(sDisplayMessage){
if (sDisplayMessage === true){
OpenWindow('WndUpdate.xml', 'WndUpdateStatus', 0, false);
}
var sXmlText = LoadXmlDoc('http://scriptlink.msgpluslive.net/redirect-116/ss.update.xml');
if (sDisplayMessage === true){
Debug.Trace('sXmlText : '+sXmlText);
}
The error was in the LoadXmlDoc call.
(More specifically the error was "msxml3.dll: The system cannot locate the resource specified." in the send below:
function LoadXmlDoc(sUrl){
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', sUrl);
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open('GET', sUrl, false);
xmlhttp.send();
return xmlhttp.responseText;
}
)
Shouldn't there be try catch blocks round, well, everything?
Tom
|