1

Simple question:

I have divs in the following format that exist in a loop. I need to paginate these divs. Is there anything out there that can do it? All I find are paginators for < p > tags...

<div id="post_#">
<div id="post_#_inside">
    <div id="like">
    </div>
    <div id="dislike">
    </div>
    <div id="postleft">
    </div>
    <div id="postright">
    </div>
</div>
</div>

The # in the ID stands for the post ID in my database.

Sweepster
  • 1,829
  • 4
  • 27
  • 66
  • try sm slide show plugin should be configurable.. see something like http://nivo.dev7studios.com/ – Baz1nga Nov 10 '11 at 19:50
  • I'm not looking for a slider, only pagination. I want to show 10 divs per "page". Also, the idea is to not have to pay for it. – Sweepster Nov 10 '11 at 20:22
  • No. Pagination is taking a series of similar items and separating them into different pages, displaying only a certain amount at a time so as to not confuse your viewers by showing them everything at once. – Sweepster Nov 10 '11 at 21:34

1 Answers1

1

u can use location.hash for example:

<a href="#page1">Page 1</a>
<a href="#page2">Page 2</a>

and on hash change load with ajax or just toggle visibility of pages

plugin for hash change: http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/

korywka
  • 7,537
  • 2
  • 26
  • 48