Paging is a technology that must be applied in Web development. In javaweb technology, beginners generally use the paging technology of SQL statements, and write paging components on this basis. The page passing parameter control layer (servlet or action) calls the paging component method, it is often very troublesome.
However, in actual development, we generally adopt some third-party paging frameworks to make paging quite simple.(Standing on the shoulders of giants)--
Here I will briefly introduce how to use the pager tag library to implement the paging function:1: On the application server, add the following content to the Http://jsptags.com/tags/navigation/pager // can be changed/WEB-INF/JSP/pager-taglib.tld // specifies where the pager-taglib.tld is stored2: To begin.
Brief tutorials
This is a set of very cool vertical pager button animation effect. This set of effects is universally available in 18 effects and can be used to make slide navigation buttons for slides, page transitions, and other container component transitions.
How to use
HTML structure
The following is a animated GIF demo of one of the effects of this set of vertical pager button animation effects:
The
Writing pages manually is good, but too tired. So in the search for a lot of open source paging plug-in on the Internet after selecting the pager-taglib-2.0, this paging plug-in because of simple usage powerful functions can quickly get started, the following gradually achieve the rapid jsp page pages.Overall effect (because there are few records, there are only two pages ):
Page 2:
1. Download pager-tag
1, put the pager-taglib.jar package in the project LIB;2. Introduce the paging tag Library to the JSP page.URI to copy from pager-taglib.jar \ META-INF \ taglib. TLD File3. Specific UseThe outermost side must be the tag, and the items is the total number of records.
-- %> // This section is commented out, because the test of struts2 must be specified in action for use. currentpagenumber is not specified i
This article uses a detailed implementation to introduce the usage of the asp.net pager page control. If you need it, you can refer to how this article operates and optimize it.
This code is the core function of the pager page control.
The Code is as follows:
Copy code
$. Fn. extend ({JPager: function (cfg, pageIndex, pageSize ){If (cfg pageIndex> 0 pageSize> 0 ){Var token = "#" +
When using a git command that can has a large amount of output (like git log , git diff or git blame ), Git opens the command outpu T in our terminal "pager"; On most modern unix-based systems, the default pager would be ' less '. Learning a few less commands would help us deal with this git command output that opens in the pager. In this lesson, we show some of
QT Window Top/true transparent/background blur/non-rectangular/skip taskbar pager/Borderless/No focus click/focus penetrationwindow pinnedQT is Setwindowflags (qt::windowstaysontophint)KDE is Kwindowsystem::setstate (WinId (), Net::keepabove)Such a sticky window will not be above the full-screen window, if you need a real top, setwindowflags (qt::x11bypasswindowmanagerhint) can ignore this rule, but this will not appear on the taskbar, etc. kimtoy Pre
Recently, MVC uses paging, and finds a good paging control on the Internet. Thanks for the hard work of the author.
Download Pager
This paging control is also supported by Asp.net. You need to check the author's homepage.
Webdiyer
View the page chart
This is the simplest. This control also provides self-input jump and supports the selection of drop-down pages. Of course, I only use the simplest one. If you need to change it, please try to
ASP. NET paging control 2.0 (Ling. pager)
Main features:
Built-in paging class library perfectly supports complex SQL PagingSupports event paging and URL paging (non-event)Supports the default, Chinese, and English language modes.The default beautiful and concise CSS styleSupport for Microsoft AjaxYou can customize CSS styles.You can set the language or paging format at will.You can enter page numbers to redirect pages.Supports pagination in the d
->setconfig (' prev ', ' prev ');$page->setconfig (' Next ', ' next page ');$page->setconfig (' Last ', ' End ');$pageSetconfig (' header ', ' $page-Setconfig (' theme ', '%first%%up_page%%link_page%%down_page%%end%%header% ');$show=$page->show ();$sql. = "LIMIT".$page->firstrow. ",".$page->listrows;$result=$file->query ($sql);As the above code, the Query method is used for querying the custom sql,page initialization needs to pass 2 parameters, SQL data total number of bars, page number of pages
Three different modes of display attached style~1.12.23.34. Paging Class body5. How to use# # # #处理html静态化页面分页的情况 # # # # html# parameter is the static page parameter xxx.com/20-0-0-0-40 the process environment is set to-?. HTML note Question mark #? The position of the question mark is automatically replaced with the Whereabouts page # Now_page the current page (the static page gets not the current page so only you pass in) $params = Array (' Total_rows ' =>100, # (Must) ' method ' =G t; ' HTML
Change the address, you can call Oicq Oh!
# ICQ Pager v0.0.1
# Brazil r0x.
# thanks goes to Upalele, Meganha, Neo, Figui, Lunetta and Vipman (for he psychological help about Ix[egg])
Class Icqpager {
var $path = "/scripts/wwpmsg.dll";
var $host = "wwp.icq.com";
var $port = 80;
var $cmd;
function Icqpager () {
$this->cmd = "POST $this->path http/1.1";
$this->cmd. = "Accept:image/gif, Image/x-xbitmap, Image/jpeg, Image/pjpeg, Application/vnd.ms-excel,
Related issues:Http://stackoverflow.com/questions/23941065/pager-error-in-kendo-gridnan-nan-of-1-itemsHttp://www.telerik.com/forums/grid-is-not-working-properlyHttp://demos.telerik.com/aspnet-mvc/grid/editing-popupWorkaround: A:. pageable (x = x.pagesizes (True))Open pagesizes in pageableB:. DataSource (DataSource = Datasource.ajax () . PageSize (10)Enable pagesize in DataSourceMethod A displays a drop-down box showing how many items are displa
This article mainly introduces the Pager implementation code of JQuery, which has some reference value, interested friends can refer to the examples in this article to share with you the specific implementation code of JQuery Pager for your reference. The specific content is as follows:
:
Code:
Html code:
Page Splitter
I just entered the front-end one months, the first time to share their experience, this time is a pager bar, belowThis is relatively simple, but for the novice is a better harvest;The HTML code is as follows:1 ulclass= "Pagination-db">2 Li>3 a>4 imgsrc= "${admin_images}/admin_v3/icon_left.png">5 a>6 Li>7 Li>8 a>1a>9 Li>Ten Li> One a>2a> A Li> - Li> - a>3a> the Li> - Li> - a>4a> -
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.