Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment on "Recipes" - previous page link #321

Open
VictorNicollet opened this issue Oct 13, 2010 · 0 comments
Open

Comment on "Recipes" - previous page link #321

VictorNicollet opened this issue Oct 13, 2010 · 0 comments

Comments

@VictorNicollet
Copy link

In http://guide.couchdb.org/draft/recipes.html you explain a simple pagination system using startkey. However, you don't really explain how the "previous" link is going to work. The only explanation you provide is this:

Populating the link to the previous page is as simple as carrying the current startkey over to the next page. If there’s no previous startkey, we are on the first page.

This works when moving from page 4 to page 5 (just remember the link to page 4), but it cannot work when moving from page 5 to page 4 (there's no way for page 5 to know that what the startkey of page 3 should be). So, I suspect there's another detail here that you did not mention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant