What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Multiple errors every time it tries to connect

Multiple errors every time it tries to connect
Author: Message:
cfp
New Member
*


Posts: 1
41 / Male / –
Joined: Apr 2007
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
04-15-2007 06:17 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On