/    Sign up×
Community /Pin to ProfileBookmark

Displaying number of rows on page

Is there any way in JavaScript to display the number of rows on a page and have a navigation at the bottom of the page to go to the next page or jump to page 2, 3, etc?

This is an example, we have a total of 50 rows in the table and we want to display 25 rows on page 1 and 25 rows on page 2. Also, have a navigation at the bottom i.e. <page1> <page2>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaSep 18.2003 — [font=arial][color=maroon]Would not it be better (and [i]much easier[/i]) to use whatever server-side language you're using to display the rows in the first place?[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@mdcollauthorSep 18.2003 — You are probably right. We are programming in JSP therefore we are going to look at server side coding vs. client side, but if there are any more suggestions. It will be appreciated. Thanks.
Copy linkTweet thisAlerts:
@JonaSep 18.2003 — [i]Originally posted by mdcoll [/i]

[B]You are probably right. We are programming in JSP therefore we are going to look at server side coding vs. client side, but if there are any more suggestions. It will be appreciated. Thanks. [/B][/QUOTE]


[font=arial][color=maroon]Approximately 13% of your visitors will have no JavaScript enabled, so it's always best to go server-side when possible.[/color][/font]

[b][J]ona[/b]
×

Success!

Help @mdcoll spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...