File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript pagination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript pagination" Watch "javascript pagination" New topic

javascript pagination

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
I have a html page and in that i was fetch data from database dynamically
for make listings.

Then how can i give facility of pagination to my listing
I was search on google but every example is for static data.

please help me for that issue.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

[Please do not bump your posts]

This is something that should be handled on the server.

[Asking smart questions] [About Bear] [Books by Bear]
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105

Here, i retrieve data from database and also perform sorting.

And also downlaod the script ( (paging.js) ) here :

This script can handle pagination process.

Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

The solution given by Eswara is full of bad practices and anti-patterns. Take it with a grain of salt.

GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Why have you posted a JSP solution (and one using really poor practices) for a JavaScript question?

[Edit: Ah, Gregg beat me by a few minutes!]

I agree. Here's the link:
subject: javascript pagination
It's not a secret anymore!