uh...
sorry gang. I guess I forgot to change the address on this one... oops!
:o)
Chris
Christopher Jordan wrote:
Hi Rey,
I hope you had a good weekend! :-)
Okay I have a question, so I'm putting out my feelers (my local CFUG,
the developer of CFJson, and you!). I was going to write to the jquery
list in general, but since I'm not currently using $.getJson() to get
my JSon string, I wasn't sure they'd help. $.getJson() doesn't seem to
be in the API documentation (at least not on visualjquery.com) so I'm
not sure if it is an Ajaxie type method.
Anyway...
I've got a CF template that builds a query (manually) which has two
fields (CellID, and CellValue). I get the string
back on the client side JSon encoded and it looks like this:
{"recordcount":9,"columnlist":"CELLID,CELLVALUE","data":{"CELLID":["172104_PDPending","172104_PDOpen","172104_PDAssigned","172104_PDConfirmed","172104_PDTotal","172104_TROpen","172104_TROffered","172104_TRSubmitted","172104_TRTotal"],"CELLVALUE":[1,0,0,0,1,3,0,2,5]}}
I then eval the JSon string like this:
var test = eval("(" + r + ")");
If I then inspect the object "test" using a _javascript_ tool a friend of
mine
wrote, and all I see is this:
Displaying Object: [object Object]
columnlist = CELLID,CELLVALUE
recordcount = 9
I don't understand what I'm doing wrong. I thought at first
that
it might be the version of CFJson, and it turned out that CFLib.org was
hosting an old version of the code. So I got the newest version from
the developer's site and there's no change. The JSon encoded string
above was generated using the newest version.
I don't understand why I would get the two values I did, but not get
any of the rest of it. You've worked with it before, can you shed any
light?
Thanks Rey,
Chris
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/
|