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

MySQL
Author: Message:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: MySQL
quote:
Originally posted by Leroux
I'm a bit unclear as to how to do it on the msgpus side however.
Do I just download the page as a variable using XMLHTTP or is there another step in it, and then how do I eval() it?

Well, let's take the output from the php snipped posted by Matti

code:
{"foo":"bar","FoO":"cookie"}

Something like this should do the trick

JScript code:
xmlhttp.onreadystatechange = function(){
    if (xmlhttp.readyState == 4 && xmlhttp.status == 200){
        var results = eval( '(' + xmlhttp.responseText + ')' );
        Debug.Trace(results.foo);
        Debug.Trace(results.FoO);
    }
}


quote:
Originally posted by Leroux

I'm trying to test with http://arkanes-arkade.co.uk/x360/json.php?id=Sonic%20the%20hedgehog because I know sonic changes with the case.  Everything I've read seems to want something such as JSON[0] to define the info.  Would that make this gameid[0], where gameid is either SONIC THE HEDGEHOG or Sonic The Hedgehog?

Unfortunately that website doesn't seem to be loading here... just wondering what do you get as output so we can have a look.
Also, you might want try out this online-JSON-editor and play around with JSON :)
05-03-2009 01:12 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MySQL - by ArkaneArkade on 04-26-2009 at 10:34 PM
RE: MySQL - by MeEtc on 04-27-2009 at 12:03 AM
RE: MySQL - by ArkaneArkade on 04-28-2009 at 11:57 AM
RE: MySQL - by Matti on 04-28-2009 at 04:25 PM
RE: RE: MySQL - by ArkaneArkade on 04-28-2009 at 10:45 PM
RE: MySQL - by Matti on 04-29-2009 at 11:06 AM
RE: MySQL - by ArkaneArkade on 05-02-2009 at 09:10 PM
RE: MySQL - by felipEx on 05-03-2009 at 01:12 AM
RE: RE: MySQL - by ArkaneArkade on 05-03-2009 at 01:33 AM
RE: MySQL - by felipEx on 05-03-2009 at 02:57 AM
RE: RE: MySQL - by ArkaneArkade on 05-03-2009 at 10:59 AM
RE: MySQL - by Matti on 05-03-2009 at 07:23 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