How to dynamically pass parameters to server datasource
How to dynamically pass parameters to server datasource
vbulash
Posts: 9Questions: 3Answers: 0
Server-side datasource init once by the similar code:
serverSide: true,
ajax: '{!! route('scales.index.data') !!}',
Here I can put static filtering.
Then I'd like to change filter input and pass parameters to server on-the-fly.
Unfortunately, datatable draw() function doen't provide ability to pass parameters.
How to it?
This question has an accepted answers - jump to answer
Answers
Like this for example:
Then in PHP you can address it as $_POST['postVariable'] and $_POST['fullTextSearchString'].
Thanks a lot!
It works!