Claudes, I put together a pretty straightforward little Pagination
plugin. I don't have a download package or documentation up yet, but
you can fetch the jquery.pagination.js plugin from here:

svn checkout http://jquery-curator.googlecode.com/svn/trunk/ jquery-
curator-read-only

var paginators = $('.someSelector').pagination('mygroup', {pages:
numOfPagesInSet}, function(group){
    this; // The page the user changed to
});

That code there will create a group of paginators in however
many .someSelector elements you have. The selectors made into
paginators through this call will remain grouped in the paginator
logic. This allows you to, in one declaration, create a new pagination
group over any number of elements that will keep itself updated as
actions change.

Now, you'll have to create the input box yourself, but the pagination
library handles all outofbounding exceptions and face rendering. So by
calling:

paginators.pagination('force-change', 'mygroup', {current: $
('#textField').val()});

you will trigger the paginators to render whatever current page you
pass in, and fire the callback.

If you need any help getting it to work, or have questions about any
of the source, let me know.

On Mar 24, 2:39 pm, claudes <claudina.sar...@gmail.com> wrote:
> I need a paginator similar to pagination for tablesorter or jqGrid where a
> user can input the page number they want to view. Issue is that the data is
> not in a table, so I cannot use these plugins.
>
> Ideally I'm wondering if anyone has found a way to modify the pagination
> pluginhttp://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm
> to support this. I am able to get it to display the current page in an input
> field but i cannot figure out how to get it to paginate to an inputed page
> number.
>
> Thanks
> --
> View this message in 
> context:http://www.nabble.com/modify-pagination-plugin-to-support-ability-to-...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to