Posts

Showing posts from April, 2016

How to add jQuery pagination to any table in minute?

Image
Pagination is one of most common things we face everywhere, wherever there is no infinite scrolling. Pagination can be achieved server side with php as well, but those is bit slower and require multiple request again and again to site or you need to precisely use ajax, but what if you want simpler solution, that’s going to be great for you and user as well. What’s my idea? Instead of downloading list of 10 row per request from server each time user navigate through pages, why not download 100 or even more list once, that will need just moment to download and no additional effort to server, and using pagination hide rest of 90 rows, using client side pagination of tables we can navigate to those 100 records without making much effort, and even if user want more, only in that case we can download further list. Simple, users don’t have to wait again and again to refresh page, get 10 more data, again refresh, and so on. Instead user will be having lightning access to all 100 record or what