Mike...
Turns out that CF was returning JSON as a string. I switched to the getJSON
method and it works perfectly now.
Thanks for your help.
-----Original Message-----
From:
jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On
Behalf Of Michael Geary
Sent: Thursday, August 14, 2008 2:19 PM
To:
jquery-en@googlegroups.comSubject: [jQuery] Re: Using jQuery to access the JSON that ColdFusion8
returns?
But d.DATA means exactly the same thing as d['DATA'], which Andy already
tried. If one doesn't work, the other won't either. It's interesting to note
that Firebug displayed d.DATA in its error message when Andy's actual code
was d['DATA'].
Andy, what does the console.log(d) display? An object that you can click
down into, or just a string? You could also do a console.log( typeof d ) to
see its data type.
My guess is that you're getting a string since you did a $.get(), and if you
change it to $.getJSON(), it will evaluate the JSON and give you the object
you expect.
-Mike
> From: FrenchiINLA
>
> I would use d.COLUMNS[0] to get "ID", and d.DATA[0] to get 4 etc.
>
> On Aug 14, 9:55 am, "Andy Matthews" <
li...@commadelimited.com>