i can call json string with ajax and i can't print in Datatables
i can call json string with ajax and i can't print in Datatables
Kirubaharan
Posts: 1Questions: 0Answers: 0
json string with key value pair...
it is in the format of [ { "emp" : "kib" },{"emp" : "sun" } ]
$(document).ready(function() {
$.ajax({
url : 'TableData',// servlet URL
type : "POST",
dataType : 'json',
success : function(data) {
data.bDestroy = true;
$('#example').dataTable(data);
},
});
});
This discussion has been closed.