Login   Register  

Data Page: Calculate entries of listings with pagination

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Lucas Tiago de Moraes
Name: Lucas Tiago de Moraes <e-mail contact>
Packages: 1 Browse all classes by Lucas Tiago de Moraes Browse all classes by
Country: Brazil Brazil - JavaScript jobs in Brazil
Age: 26
All time rank: 9811 in Brazil Brazil
Week rank: 29 Up6 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz  
This object can calculate entries of listings with pagination.

It takes as parameters the total number of entries per page, the limit of entries in each page, the current page number and total number of page entries.

The object can return the number of entries on the current page, the number of the first_page, last_page, the first entry of the current page, the previous page number, the next_page number, and the numbers of all pages.

  Classes of Lucas Tiago de Moraes  >  Data Page  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Data Page
Base name: data-page
Description: Calculate entries of listings with pagination
Version: 1.0
JavaScript version: 1.0
License: Artistic License
All time users: 140 users
All time rank: 244
Week users: 1 user
Week rank: 36 Up
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image Algorithms Numerical and statistical algorithms View top rated classes

  Innovation Award  
JavaScript Programming Innovation award nominee
June 2013
Number 3
Splitting long listings of content across multiple pages is a common design pattern used by many sites.

This JavaScript object can perform the necessary calculations to determine which listing entries should be displayed on each page, as well other details to build links to go to the different listing pages.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file DataPage.js Class Class DataPage
Accessible without login HTML file DataPage.html Doc. Documentation Class DataPage
Accessible without login HTML file example1.html Example Example 1
Accessible without login HTML file example2.html Example Example 2

Download Download all files: data-page.tar.gz data-page.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.