Server side searching problem
Server side searching problem

Hello all i got a search field from server side. I`m using Wordpress ( i integrated datatables with WP Posts and Meta Data ). The problem is, when i recieve the data i see it in Response tab, but Table is blank. Any suggestions ?
$('#example').DataTable({
"bSort": false,
"serverSide": true,
select: true,
"columnDefs": columnDef,
"bServerSide": true,
"paging": false,
dom: "Bfrtip",
Here is Json response filtered by my search field:
retracted
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Bump
Your data looks like this:
I think it should be an array of objects as described here:
https://datatables.net/manual/data/#Objects
I think your JSON should look more like this:
Kevin
I will try it, but i think it will not work, because initial data in table ( first load when user come on page, looks exactly the same)
Okay, i tried it. When i put manually JSON with that structure, the PHP gives me error 500.
How are you defining your columns (its not shown in the code above). The structure of your columns definition will determine how the data needs to be structured in your JSON.
Kevin