There are a lot of ways to do it, here is a simple solution, of course 'length' will have to be determined somehow.
var items_per_page = 10; var length = 1000; function pageSelectCallback(page_index, container){ $("#contentarea).load("url",{page:page_index}) return false; } $("#pagination").pagination(length,{ callback: pageSelectCallback, items_per_page:items_per_page }); On Feb 8, 1:51 pm, deviateDesigns <dustin.good...@gmail.com> wrote: > How would set this up with list items and pulling from a external html > file? I am new to using this library. > > On Feb 6, 8:28 pm, nate laws <natel...@gmail.com> wrote: > > > I just tried this plugin for the first time today. The think to > > realize is that it does not directly have anything to do with which > > items and how many are displayed. Instead it only controls the > > pagination links. You have to manually display whichever items you > > want to be shown in the callback function. demo_options.htm shows one > > way of doing it when grabbing from am array. > > > Personally I use a method like: > > var items_per_page = 10; > > function pageSelectCallback(page_index, container){ > > $("table tr").hide(); > > var start = page_index * items_per_page; > > $("table tr:gt("+start+"):lt("+items_per_page+")").show() > > return false; > > > } > > > On Feb 6, 2:49 pm, deviateDesigns <dustin.good...@gmail.com> wrote: > > > > I am having the same issue not sure what is the issue still > > > researching looks like the items_per_page is passing only a 1. > > > > On Jan 26, 4:53 am, Andy789 <e...@abcstudio.com.au> wrote: > > > > > Hi all, > > > > > I am playing with thepaginationplugin(http://plugins.jquery.com/ > > > > node/5912) and cannot figure out how to change number of items showing > > > > on a single page. Changing the param items_per_page changes the number > > > > of page links (navigation), but still shows a single item on a page. > > > > > You may play with the demo.htm from the download to see what I am > > > > talking about.. > > > > > Has someone faced the sameproblem? Any suggestions how to fix this? > >