XML from internet - 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: XML from internet (/showthread.php?tid=87239) XML from internet by ArkaneArkade on 11-12-2008 at 06:22 PM
Hey guys, jscript code: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 RE: XML from internet by matty on 11-12-2008 at 06:35 PM
You need to preceed gameslist with a / or //. jscript code:or jscript code: RE: XML from internet by ArkaneArkade on 11-12-2008 at 07:03 PM OK. I'm not actually sure why what I pasted is different, but I do already have the gameslist preceded by a double-backslash. It still gives the same error though. RE: XML from internet by SmokingCookie on 11-24-2008 at 07:35 AM
You should not use a backslash (\) as in a file path, but a normal slash (/) as in URLs. jscript code: In this example, you can give the game attributes (like <Tag> <Subtag value="Hello world!" /> </Tag>) RE: RE: XML from internet by ArkaneArkade on 11-24-2008 at 08:41 AM
quote:Lol, feel free to ignore the idiot. I tend to screw up with my typing a lot - the backward slash I referred to was in fact what normal people refer to as a forward-slash. I however will not conform to that. apparently. I'm not sure what you mean by the further interaction though? You have to remember, I may look intelligent, but it's all an act RE: XML from internet by SmokingCookie on 11-24-2008 at 11:38 AM
Hehe xml code: Now, to get text, and only text, you can use your own piece of code. If you want attributes and/or text, you may want to use this: jscript code: If you use XMLHTTP to download the XML file from the internet, you'll need either the XMLHTTP's methods to parse the XML, or use XMLDOM.loadXML(); RE: XML from internet by ArkaneArkade on 11-26-2008 at 07:41 AM OK man, I see what you mean now. However, it is only the text I want from anything... although I'll make sure keep in mind if I'm doing any updates later on |