• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript pagination

 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Please do not bump your posts]

This is something that should be handled on the server.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


And also downlaod the script ( (paging.js) ) here :
http://en.newinstance.it/2006/09/27/client-side-html-table-pagination-with-javascript/

This script can handle pagination process.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution given by Eswara is full of bad practices and anti-patterns. Take it with a grain of salt.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic