Pagination of data in XML data Island

Source: Internet
Author: User
We already know how to use HTML to display the data in the XML data Island in the form of a Table. However, if there is a large amount of data, we hope that we can display the data by page to avoid users going up or down the screen. We already know how to use HTML to display the data in the XML data Island in the form of a Table. However, if there is a large amount of data, we hope that we can display the data by page to avoid users going up or down the screen.

Anyone familiar with HTML knows

The tag has a dataPageSize attribute. you can specify the number of records displayed on each page.
The marked dataPageSize specifies a positive integer to achieve paging, as shown in figure

Someone may ask, "is data paging so simple ?" By the way, this is so simple, but the paging function is not powerful at this time, because I have not yet implemented page jump, so it cannot always make the user look at the data on the first page.

Indicates that 20 pieces of data are displayed on each page.

 
  
   
    
   
  
 

The above is the detailed information displayed on the data page of the XML data Island. For more information, see other related articles in the first PHP community!

Tag also provides a series of methods for us to implement the page flip function. For example, FirstPage (), previousPage (), nextPage (), and lastPage (). We add four buttons in HTML and add the code for clicking the event for them:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.