How To Display Algolia search-results into DataTables
How To Display Algolia search-results into DataTables

Hello,
I'm already using dataTables in my symfony project to display sql db content and it works amazingly well.
I have a search funtion too and I'd like to display the result in a table as well. I'm using server-side search to get the json response from algolia into a variable and I've tried to pass it into the js script of datatables as shown in the ajax exemples but no results.. I know the script in the docs are looking for a .txt file
Have anyone else tried this? Can someone show me an exemple?
Thanks a lot!
Answers
Here is an example of using JS sourced data:
https://datatables.net/examples/data_sources/js_array.html
Do you get any alerts or errors in the browser's console?
If this doesn't help maybe you can create a simple example with the data you have and how you are trying to pass it into Datatables:
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin