Ajax call, Server side
Ajax call, Server side
Hey guys!
First of all, I'm in love with this plugin. It's amazing! I am having this problem with AJAX Server-side processing. I'm calling a PHP file (i.e htttps://website.com/json/getIdsFrom.php?q=123) from an external source which I have absolutely no control with. It returns a json array like this:
```[{"id":"1a","name":"John Doe"}];
I need to pull > 500k of data from this external source to table. I tried the client-side but I think it slows down/crash if the dataset is more than ~500k.
The way I pull it is by using AJAX. I was wondering if there's a way to manipulate an AJAX call on dataTable. All the example I saw didn't help me at all.
Thank you!
Answers
Does your server side script support the server side processing protocol as described here?
https://datatables.net/manual/server-side
You can send parameters to the server using the
ajax.data
option. If your script doesn't support server side processing then you might be able to use this to send parameters to the server to limit the data fetched.Kevin