Server side processing with Java not working
Server side processing with Java not working
andyuser
Posts: 1Questions: 0Answers: 0
My js in dataTable.js is :-
$(document).ready(function() {
$('#example').dataTable( {
"processing": true,
"serverSide": true,
"ajax": "http://localhost:8085/dataTableData.app",
} );
} );
JSON returned from sever :-
{"iTotalRecords":1,"iTotalDisplayRecords":1,"sEcho":"1","sColumns":null,"aaData":[{"name":"test name"}]}
HTML :-
<html>
<head>
<link rel="stylesheet" href="http://cdn.datatables.net/1.10.7/css/jquery.dataTables.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://cdn.datatables.net/1.10.7/js/jquery.dataTables.js"></script>
<script src="/examples/js/dataTable.js"></script>
</head>
<body>
<table id="example">
<thead>
<tr>
<th>name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</body>
</html>
And i get an alert saying "DataTables warning: table id=example - Requested unknown parameter '0' for row 0. For more information about this error, please see http://datatables.net/tn/4". I'm not finding http://datatables.net/tn/4 useful!
Please help :(
This discussion has been closed.