What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Scripting Problem

[Help] Scripting Problem
Author: Message:
rikimasse97
New Member
*


Posts: 14
– / Male / Flag
Joined: Jul 2009
RE: [Help] Scripting Problem
the debug says that there is an error at line 159:
code:

.....
////////////////////////////////////////////////////
// Ajax functions by Lucsas van Dijk (lucasvd.nl) //
////////////////////////////////////////////////////
function GetFeed(url, callback_function, OriginWnd)
{
    var feed = create_http_object();

    feed.onreadystatechange = function();
    {
        if(feed.readyState==4)
        {
            if(feed.status == 200)
            {
                eval(callback_function + '(feed.responseXML, OriginWnd)');
            }
            else
            {
                Debug.Trace('[Error] ' + feed.status);
            }
        }
    }

    Debug.Trace('[URL] '+url);

    feed.open('GET', url, false);
    feed.send(null);
}

function create_http_object()
{
    var ActiveXTypes = [
        "MSXML2.XMLHTTP.5.0",
        "MSXML2.XMLHTTP.4.0",
        "MSXML2.XMLHTTP.3.0",
        "MSXML2.XMLHTTP",
        "Microsoft.XMLHTTP",
    ];

    for( var i = 0; i < ActiveXTypes.length; i++ );
    {
        try
        {            Debug.Trace('[ActiveX] ' + ActiveXTypes[i]);
            return new ActiveXObject( ActiveXTypes[i] );
        }
        catch( e )
        { }
    }

    try
    {
        return new XMLHttpRequest();
    }
    catch( e )
    { }

    return false;
}


This post was edited on 07-16-2009 at 06:14 AM by rikimasse97.
07-16-2009 06:10 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Scripting Problem - by Shadowajohn on 07-13-2009 at 08:22 PM
RE: [Help] Scripting Problem - by rikimasse97 on 07-16-2009 at 06:01 AM
RE: [Help] Scripting Problem - by rikimasse97 on 07-16-2009 at 06:10 AM
RE: [Help] Scripting Problem - by Shadowajohn on 07-16-2009 at 06:21 AM
RE: [Help] Scripting Problem - by rikimasse97 on 07-16-2009 at 06:25 AM
RE: [Help] Scripting Problem - by Spunky on 07-17-2009 at 02:08 PM


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