January 24th, 2002

mountain

Pagination

Using the mode getevents in the LiveJournal protocol, what methods can you use to page the results? You have the lastn selecttype request and the howmany request, but you don't have a beginat or anything similar. I was thinking of something like the LIMIT and OFFSET parameters of a SQL query ... a way to say "ok, select 20 entries beginning with the 40th entry". I need a way to paginate my results so users can scroll through the entries page by page.