I am creating a table in HTML5 using DataTables plugin for jQuery. The table is getting populated with a JSON object that is being received from the back-end web services.
Upon running the web application, the console displays an error saying,
Uncaught TypeError: Object [object Object] has no method 'dataTable'
in Google Chrome and a similar one in Firefox.
I am using the latest scripts for jQuery and jQuery DataTables. I have also tried creating DataTables on static tables and that works fine.
The dataTable() function is not being recognized in the scripts for a dynamically populated table.
The code for DataTables is as follows:
$(document).ready( function () {
$('#datatable').dataTable( {
"sScrollY": "200px",
"bPaginate": false,
"bProcessing": true
} );
} );
datatable is the name of the table being populated.
Any help in solving this issue would be deeply appreciated.