|
Posted by PseudoMega on 12/19/06 14:45
Consider this example:
A google search for the word "pagination" with my preferences set to
100 results per page.
After hitting the search button, this is the URL:
http://www.google.com/search?num=100&hl=en&lr=&q=pagination&btnG=Search
The links at the bottom of the page for "previous", "next" and the
individual page numbers are as such:
http://www.google.com/search?q=pagination&num=100&hl=en&lr=&start=100&sa=N
http://www.google.com/search?q=pagination&num=100&hl=en&lr=&start=200&sa=N
http://www.google.com/search?q=pagination&num=100&hl=en&lr=&start=300&sa=N
and so on...
The 'q', 'num' and 'hl' variables remain, while the 'start' variable is
added to the mix as an offset for page numbering. I need to basically
emulate this, but the 'start' variable will be the 'page' variable in
my situation. This needs to fit with my dynamic pagination code which
creates links based on the number of results encountered in the
database.
BootNic and Toby: your suggestions seem along the right track, but I
need these to be text links just like Google's. Also, in addition to
the text links, my pagination code creates a drop down select menu with
an entry for each available page number.
Thanks for all the suggestions so far. I hope this makes it more clear
though.
[Back to original message]
|