How to use serverside processing without PHP
How to use serverside processing without PHP
I want to load only the records that I show to user user clicks next page or scrolls down(if no pagination ) we get the next records from Database.
I am looking to improve the page performance as I am now loading 300 odd records and it is really slow for the web page to load (13-15 seconds). Now I get data using Ajax call. I donot want to use php for serverside pagination.
Is there any better way to improve the performance, Please do help me out.
Thanks,
Reddy
This question has an accepted answers - jump to answer
Answers
You can use language you want for server-side processing. I provide a demo in PHP, but really it doesn't matter as long as the correct JSON is returned from the server. The manual contains the details of that.
Allan
Thanks Allan for the response, Can I do that just with JavaScript or jQuery ?
Please let me know :)
You want to do server-side processing on the client-side? That doesn't quite compute for me! If you want client-side processing, why would you enable server-side processing at all.
Allan
Now I am getting like 300+ rows in a single ajax call, which is increasing page load time ( now page loads in 20 seconds) after that everything is very fast.
How can I use DataTables just to get the first page of the table from db during the page load and then click on page numbers to get other data. I dont want all the data to come during page load.
Thanks in advance for your response :)
Use server-side processing. See also the data documentation for an overview.
Allan