What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » XML from internet

XML from internet
Author: Message:
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
39 / Male / Flag
Joined: Mar 2007
O.P. XML from internet
Hey guys,
I'm looking to improve my script by having the XML online.

I've tryed to write a function, but I can't get it to work and I'm not sure why.
jscript code:
function readwebnode(game, node)
{
    xml.load("http://www.arkanes-arkade.co.uk/x360/x360-db.xml");

    xml.onreadystatechange=function()
    {
        if (xml.readyState == 4)
        {
            var value = xml.selectSingleNode("gameslist/game[@name='"+game+"']/"+node).text;
            Debug.Trace(value);
        }
    }
}
I'm calling this at startup just to test, and using readwebnode("Crackdown", "psm"); to call it.  this is one of the first things in the xml, and also since it's only 1 word I figured it would be easier.
When it runs though, I get "Error: Object required (code: -2146827864)" appear twice in the debug window, referring to line 118 (the line beginning var value).
I've tried using almost identical code, without the readystate etc on a local copy of the same file, and it returns properly, so I'm guessing that my problem is to do with the dl, but I don't know enough to see my problem.  can anyone help me out?
Cheers guys
[Image: adsig.jpg]
11-12-2008 06:22 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
XML from internet - by ArkaneArkade on 11-12-2008 at 06:22 PM
RE: XML from internet - by matty on 11-12-2008 at 06:35 PM
RE: XML from internet - by ArkaneArkade on 11-12-2008 at 07:03 PM
RE: XML from internet - by SmokingCookie on 11-24-2008 at 07:35 AM
RE: RE: XML from internet - by ArkaneArkade on 11-24-2008 at 08:41 AM
RE: XML from internet - by SmokingCookie on 11-24-2008 at 11:38 AM
RE: XML from internet - by ArkaneArkade on 11-26-2008 at 07:41 AM


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