Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

json file is read but not displayed.. getting error .. f is not defined

$
0
0
Im using dataTables min 1.9.2

What I want to do is get data from server. This data is in json format.
I can see that the data is gotten successfully in the server, but it is not displayed and also get the error, f is undefined.

This is the where the code stops (shown below is code taken from dataTables js)
               var f=a.sAjaxDataProp!==""?W(a.sAjaxDataProp)(c):c;
                for(b=0;b<f.length;b++)H(a,f[b]);
                    a.iInitDisplayStart=d;

when I checked the value of c, it already contains the data that Im expecting. while this a.sAjaxDataProp!==""?W(a.sAjaxDataProp) contains aaData.
what can I do to fix this? thanks

And what does this mean,
DataTables expects an object with an array called "aaData" with the data source.

That is taken from their site http://datatables.net/examples/data_sources/ajax.html
is aaData a variable name?

Viewing all articles
Browse latest Browse all 1816

Trending Articles