I am trying to use server side processing for my datatable but it just doesn't work when you use the pagination. It reads processing, but does nothing. It pops up with requested unknown parameter '0' for row 0
$('#load').DataTable({
"processing": true,
"serverSide": true,
"ajax": "{{ url('api/testing')}}","columns": [
{ "data": "id" },
{ "data": "title" }
],
"deferLoading": 20
});
TABLE
<table id="load">
<thead>
<tr>
<th>Booking ID</th>
<th>Booking Title</th>
</tr>
</thead>
<tbody>
@foreach($bookings as $booking)
<tr>
<td>{{ $booking->id }} </td>
<td>{{ $booking->title }}</td>
</tr>
@endforeach
</tbody>
</table>
JSON
{
data: [
{
id: 1,
title: "Title 1"
},
{
id: 2,
title: "A Meeting"
},
{
id: 3,
title: "Another title"
}
]
}