I'm using Server side processing of DATATABLES using larvel5.3
this us my JS code
var users = $('.users-datatable').DataTable({
processing: true,
serverSide: true,
ajax: "}",
columnDefs: [{
targets: [0, 1, 2],
className: 'mdl-data-table__cell--non-numeric'
}]
});
and this my response
{"draw":2,"recordsTotal":1,"recordsFiltered":1,"data":[["taimoor","hassan","dastisupportadmin@gmail.com"]],"input":{"draw":"2","columns":[{"data":"0","name":"","searchable":"true","orderable":"true","search":{"value":"","regex":"false"}},{"data":"1","name":"","searchable":"true","orderable":"true","search":{"value":"","regex":"false"}},{"data":"2","name":"","searchable":"true","orderable":"true","search":{"value":"","regex":"false"}}],"order":[{"column":"0","dir":"asc"}],"start":"0","length":"10","search":{"value":"","regex":"false"},"_":"1480405136776"}}
It is working fine on my local machine Ubuntu 16.04 but on server same Ubuntu 16.04 its is giving my Invalid JSON error.
Please help me
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire