Paginação e filtros de consulta no servidor
06/10/2014 20:04
$('#example').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": '../cliente/lista',
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax({
"dataType": 'json',
"contentType": "application/json; charset=utf-8",
"type": "POST",
"url": sSource,
"data": '{}',
"success": function (data) {
var s = $.parseJSON(data.d);
fnCallback(s);
}
});
}
})
Para se registrar, clique aqui.