Hi all,
I'm having a slight issue with referencing a different object from my JSON response.
The response looks like this ;
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.
I'm having a slight issue with referencing a different object from my JSON response.
The response looks like this ;
{ "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] ] }
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.