Skip to content

carlo-fontanos/better-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Pagination

Instead of relying on the server side to generate the HTML template and pagination buttons, it would be a lot easier and faster if we seprate each task like this:

  • Server side will handle the queries then return the data in json format.
  • JsRender will use the json data to render the HTML.
  • simplePagination will be responsible for generating the pagination buttons.

Advantages:

  • Faster paging response time.
  • Easier to format HTML template.
  • Easier for other applications to interface with your data because the return type is in standard JSON format.
  • Server side is so much lighter, we only need to focus on the queries and nothing else!

In this example I made use of PHP as my server side scripting.

Plugins used:

About

Make your Ajax pagination run faster.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published