On 6/30/06, Allen Gilliland <[EMAIL PROTECTED]> wrote:
quick design question for those that are interested. as we start to add
more paging capabilities we can decide how we want that paging to be
controlled. right now there seem to be 2 possibilities ...
1. accept 2 query params, offset and length. the offset determines the
point in the collection to start from and the length determines how many
values to show in the view. i.e. /<weblog>?offset=10&length=10 would
show the second page of a 10 items per page view.
2. accept 1 query param, page. the offset and length are calculated
internally based on the page number. i.e. /<weblog>?page=2 would be the
second page
I think you're right for all the right reasons. It's inconvenient and
even dangerous to allow end-users to specify offset and length in the
URLs. So #2 is the way to go.
- Dave