aaData is undefined?
aaData is undefined?
Sorry to bother you with this but I'm fairly confused.
I get a message that a.aaData is undefined. (a being my json variable). Now if I print a it looks just like the json that php is returning, but for some reason I can't access aaData. I'm sure this is something very simple and stupid, but I'm just not seeing it. Thanks for any help!
The json that is being returned by the php looks like this:
{
"sEcho": 1,
"iTotalDisplayRecords": 8,
"aaData": [
[
"8",
null,
"0",
"0",
null,
"2010-02-02 13:06:00",
"2010-02-02 13:06:00",
"2010-02-24",
"2010-02-27",
"street",
"city",
"oh",
"44720",
"complete",
"More services",
"0",
"1",
"0"
],
...
]
}
http://www.jsonlint.com/ verifies that it is valid json.
I get a message that a.aaData is undefined. (a being my json variable). Now if I print a it looks just like the json that php is returning, but for some reason I can't access aaData. I'm sure this is something very simple and stupid, but I'm just not seeing it. Thanks for any help!
The json that is being returned by the php looks like this:
{
"sEcho": 1,
"iTotalDisplayRecords": 8,
"aaData": [
[
"8",
null,
"0",
"0",
null,
"2010-02-02 13:06:00",
"2010-02-02 13:06:00",
"2010-02-24",
"2010-02-27",
"street",
"city",
"oh",
"44720",
"complete",
"More services",
"0",
"1",
"0"
],
...
]
}
http://www.jsonlint.com/ verifies that it is valid json.
This discussion has been closed.
Replies