Fzero
Advanced Member
- Joined
- Mar 9, 2010
- Messages
- 4,702
I know Wordpress or other CMS makes this type of thing nice and easy, but I am looking to set up pagination into a basic HTML site.
It's not something I have looked into before, I was looking at examples of jquery pagination last night and just cannot see how it is implemented.
Taking this jquery one called jqPaginator as an example, it's really nice looking and allows the visitor to directly enter the page number, which is what I really like about this one compared to many others.
http://beneverard.github.com/jqPagination/
So, on that page, it shows the basic HTML which will get the pagination buttons showing.
Also it shows the JS to initialise it from the HTML.
What I cannot understand is _how_ do you identify which content you want to set as the end of one page and the start of the next?
If I have a load of photos on a page, rather than scrolling down forever I want to show only 10, then to view more you'd have to click on the 'next page' button of the pagination.
I don't see how these scripts recognise that I want the first page to end at my 10th photo, my second page to end at my 20th photo....etc.
I'm baft.
I've no idea but hoping it is not too complicated.
Anyone who uses pagination or can explain this to me please?
Cheers
It's not something I have looked into before, I was looking at examples of jquery pagination last night and just cannot see how it is implemented.
Taking this jquery one called jqPaginator as an example, it's really nice looking and allows the visitor to directly enter the page number, which is what I really like about this one compared to many others.
http://beneverard.github.com/jqPagination/
So, on that page, it shows the basic HTML which will get the pagination buttons showing.
Also it shows the JS to initialise it from the HTML.
What I cannot understand is _how_ do you identify which content you want to set as the end of one page and the start of the next?
If I have a load of photos on a page, rather than scrolling down forever I want to show only 10, then to view more you'd have to click on the 'next page' button of the pagination.
I don't see how these scripts recognise that I want the first page to end at my 10th photo, my second page to end at my 20th photo....etc.
I'm baft.
I've no idea but hoping it is not too complicated.
Anyone who uses pagination or can explain this to me please?
Cheers