Pagination
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
Pagination, also known as paging, is the process of dividing a document into discrete pages, either electronic pages or printed pages.
In reference to books produced without a computer, pagination can mean the consecutive page numbering to indicate the proper order of the pages, which was rarely found in documents pre-dating 1500, and only became common practice c. 1550, when it replaced foliation, which numbered only the front sides of folios.
Pagination in word processing, desktop publishing, and digital typesetting
All of these software tools are capable of flowing the content through algorithms to decide the pagination. For example, they all include automated
Pagination in print
Today printed pages are usually produced by outputting an electronic file to a printing device, such as a
Pagination in electronic display
"Electronic page" is a term to encompass paginated content in
Most electronic pages are for either display (screen output) on a
In web browsers
Electronic pages displayed on a web browser are often called web pages, regardless of whether they are accessed online via a web server on the World Wide Web, or stored locally offline. More accurately, such documents are named by the markup language that makes them displayable via a web browser, e.g. "HTML page".
With
Pagination is used in some form in almost every web application to divide returned data and display it on multiple pages within one web page. Pagination also includes the logic of preparing and displaying the links to the various pages.
Pagination can be handled
For client-side pagination, the content of each page is included in the HTML source code pre-loaded within the page, while server-side pagination requests each page individually upon navigation.
Server-side pagination is more common. Client-side pagination can be used when there are very few records to be accessed, in which case all records can be returned, and the client can use JavaScript or CSS[1] to view the separate pages.
By using
Server-side pagination is appropriate for large data sets providing faster initial page load, accessibility for those not running Javascript, and complex view business logic, while client-side pagination allows navigating between pages without delay from a server request.
Correctly implementing pagination can be difficult.[3] There are many different usability questions such as should "previous" and "next" links be included, how many links to pages should be displayed, and should there be a link to the first and last pages.[4] Also ability to define the number of records displayed in a single page is useful.[5]
In comparison to bottomless scrolling, pagination allows skipping pages and can be implemented with permanent links (as done with the offset
URL parameter in the MediaWiki wiki engine), whereas bottomless scrolling does not require clicking or tapping if loaded automatically.
In Database
Pagination is an approach used to limit and display only a part of the total data of a query in the database. Instead of showing hundreds or thousands of rows at the same time, the server is requested only one page (a limited set of rows, per example only 10 rows), and the user starts navigating by requesting the next page, and then the next one, and so on. It is very useful, specially in web systems, where there is no dedicated connection between the client and the server, so the client does not have to wait to read and display all the rows of the server.
Presentation vs. content
Today, all content, no matter which output medium is planned, predicted, or not predicted, can be produced with technologies that allow downstream transformations into any presentation desired, although such best-practice preparation is still far from universal. This usually involves a
See also
References
- ^ "Building a paginated listing with only HTML and CSS for Responsive Design". _Beacon – Main Site 2019.
- JavaWorld. Retrieved 26 July 2020.
- ^ Baptiste, Lyndon (30 November 2007). "Perfect PHP Pagination". SitePoint. Retrieved 6 February 2009.
- ^ Gervasio, Alejandro (10 May 2005). "Previous or Next? Paginating Records with PHP – Part 3". DevShed. Archived from the original on 8 May 2017.
- ^ Nimesh, Rakhitha (21 August 2011). "Creating a PHP Pagination Library From Scratch". InnovativePhp. Archived from the original on 27 April 2016.