Getting a "No data available in table" error
Getting a "No data available in table" error
tyanweiting
Posts: 2Questions: 0Answers: 0
Hello,
I am trying to initialize the dataTables plug-in and am getting the "No data available in table" error. I am using Handlebars.js to create a table template using JSON. Is there a trick i'm missing? Are these various js scripts compatible?
$(document).ready(function(){
$('#reports-table').dataTable();
$.ajax({
url: "/custom/json-test.php",
type: "POST",
data:{ "service_name" : "getReportsByProfileId","profile_id" : "16017"}
}).done(function(data) {
...
});
});
...(handlebarsstuff)...
I am trying to initialize the dataTables plug-in and am getting the "No data available in table" error. I am using Handlebars.js to create a table template using JSON. Is there a trick i'm missing? Are these various js scripts compatible?
$(document).ready(function(){
$('#reports-table').dataTable();
$.ajax({
url: "/custom/json-test.php",
type: "POST",
data:{ "service_name" : "getReportsByProfileId","profile_id" : "16017"}
}).done(function(data) {
...
});
});
...(handlebarsstuff)...
This discussion has been closed.
Replies
Hope this helps something out there.