Shoutbox

Multiple errors every time it tries to connect - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Multiple errors every time it tries to connect (/showthread.php?tid=73628)

Multiple errors every time it tries to connect by cfp on 04-15-2007 at 06:17 PM

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