Closed ferchuni closed 7 years ago
I have figured out the problem. I have been using the compatibility mode -legacy- in the initialization and it sends the 'sEcho' parameter.
The compatibility mode is triggered by the use of the old 'sAjaxSource' parameter.
$('#example').DataTable( {
serverSide: true,
sAjaxSource: {
url: '/data-source',
type: 'POST'
}
} );
https://datatables.net/manual/server-side#Legacy
Thanks for the great work :)
No problem, thanks :)
I get a 'legacy datatables' error, but I'm using the version 10.10.15.
The library checks if the params include the 'sEcho' argument. The problem is that the argument seems to be present in the construction of the URL for the version 10.10.15
URL:
sEcho=1&iColumns=8&sColumns=%2C%2C%2C%2C%2C%2C%2C&iDisplayStart=0&iDisplayLength=10&mDataProp_0=0&sSearch_0=&bRegex_0=false&bSearchable_0=false&bSortable_0=true&mDataProp_1=1&sSearch_1=&bRegex_1=false&bSearchable_1=true&bSortable_1=
The code seems to be this:
Version: