hi all.. i have a problem,,i try to make a table using datatable...i've been download from datatable.net.. but the data grid not show...just the table head (thead)... where is my fault??
<table cellpadding="0" cellspacing="0" border="0" class="display" id="datalist">
<thead>
<tr>
<th>Line </th>
<th>Model </th>
<th>Serial </th>
<th>NIK </th>
</tr>
</thead>
<tbody> </tbody>
</table>
<script>
$(document).ready(function(){
var oTable;
oTable = $("#datalist").dataTable({
"bRetrieve" : true,
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": 'showlist.php',
"aaSorting" : [[1,"desc"]],
"aoColumns" : [
/*Line*/ null,
/*Model*/ null,
/*Serial*/null,
/*NIK*/ null
]
});
});
</script>
at firebug not show error and at post response show result:
{"aaData":[
["FA 04","KW-XC555UD","123X0098","12345"],
["FA 05","KD-R435UHD","113X0057","12345"],
["FA 11","kd-r411uhd","115x0021","12345"],
["FA 04","kw-xc406hund","105x1101","12345"],
]}