Referencing JSON object for footer callback

Referencing JSON object for footer callback

millsymillsy Posts: 2Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi all,

I'm having a slight issue with referencing a different object from my JSON response.
The response looks like this ;

[code]
{
"object1":
{
"ga:totals":"8",
"ga:visits":"10"
},
"object2":
[
["table row 1","Version 1",1,2,3,4,5],
["table row 2","Version 2",1,2,3,4,5]
]
}
[/code]

If I use sAjaxDataProp to reference object2 this successfully draws the datatable with the rows specified, however I'm trying to draw a totals row in the tfoot section of the datatable which references object1 - ga:totals / ga:visits. It would be great if someone could point me in the right direction to reference object1 within the same call, to populate my tfoot with the object1 totals/visits.

All help is very much appreciated. Thanks in advance.

Replies

This discussion has been closed.