...

View Full Version : Sample Javascript DOM code for Pagination



selvamonlinemca
05-14-2012, 01:49 PM
HI

I have an issue with Pagination in Javascript DOM.
What i have done is Page numbers are continuously printed based on total number of pages.

But i want to split out the Pages like "< 1 2 3 4 >", now i have code for "1 2 3 4 5 6 7 8 9 10".

Please anyone help me to fix this issue.

What i need is,

total no pages =10
page limit =3

these are output from javascript

i want display like this, when page loading shows, "1 2 3"

if total no pages more than page limit so "1 2 3 >"

when i click on > symbol we want to show "< 4 5 6 >" like that.

Need snippets to achieve this.

Regards
Selva

selvamonlinemca
05-14-2012, 01:50 PM
All are my own coding. nothing was get from websites.

DJCMBear
05-14-2012, 02:00 PM
1. Google is your friend ... look it up.
2. This is the PHP forum not the Javascript forum
3. This is the PHP snippets section not the PHP question section



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum