This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes paging using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "paging using javascript" Watch "paging using javascript" New topic
Author

paging using javascript

Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
i want to create a paging fucntion with next & previous button using javascript
by default should be 1-10 page, when user click next button,then display
11-20
if user click previous,then display 1-10.

how can i do this?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61082
    
  66

That's like saying that you want to write a letter with a watermelon. JavaScript is not the right tool for the job.

See the JSP FAQ for ways to do this by making the database do the work.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: paging using javascript