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

Pages: (2): « First « 1 [ 2 ] Last »
MySQL
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: MySQL
quote:
Originally posted by Leroux
- Out of interest, why are the extra brackets added?  Just so I fully understand the code I use.
They are needed because otherwise it won't parse the object correctly.
Taken from JSON.org:
quote:
The text must be wrapped in parens to avoid tripping on an ambiguity in JavaScript's syntax.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
05-03-2009 07:23 AM
Profile E-Mail PM Web Find Quote Report
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
38 / Male / Flag
Joined: Mar 2007
O.P. RE: RE: MySQL
Matti - Thanks for the info.  Just helps.  I prefer to use code I understand properly, rather than just anything that works.

quote:
Originally posted by felipEx

I got a better way to organize this output and deal it with JScript.

code:
{"results": [
        {"Title": "Sonic The Hedgehog", "PSM": "A blue streak speeds by - It\\'s Sonic The Hedgehog"},
        {"Title": "Sonic The Hedgehog", "PSM": "Faster than the naked eye - It\\'s Sonic The Hedgehog"},
        {"Title": "Sonic The Hedgehog", "PSM": "test"}
    ]
}

I've changed the code output now to match yours, but I still get the same error.  I've also tried just copying your json, but I still get the same error.

I've scanned my JSON output using the verifier at http://www.jslint.com/ and it says its all good (both mines, and yours) but still I get Error: Expected ')'.  Any ideas?

This post was edited on 05-03-2009 at 11:45 AM by ArkaneArkade.
[Image: adsig.jpg]
05-03-2009 10:59 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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