[cgiapp] Q: Any guidelines for paging thru db records via CGIparams?

David Kaufman david at gigawatt.com
Wed May 28 21:33:56 EDT 2008


Hi Ron,

"Ron Savage" <ron at savage.net.au> wrote:
> Hi Folks
>
> [...] it happens I'm using a per_page of 10 (say) to call
> get_winemaker_iterator(), so the first call returns records 1 .. 10 to
> the user.
>
> What's a good way to display buttons so the user can page forward to get
> records 11 .. 18, and (later) back from page 2 to page 1?

I realize I'm chiming in a bit late here, but...

Have you looked at the HTML::Pager module?
http://search.cpan.org/perldoc?HTML::Pager

Sounds like it does what you're looking for, and being by Sam Tregar, plays 
well with HTML::Template.

-dave 



More information about the cgiapp mailing list