sausage: Contextual pagination for jQuery
Not everything that extends $
is money, so it’s rare we cover jQuery plugins. However, Sausage from Christopher Cliff has a unique take on pagination:
Sausage is meant to be used with infinite (or at least long) scrolling pages and adds pagination markers to the margin. For a real-world example, check out how Sausage enhances the online version of CouchDB The Definitive Guide with just the following code:
$(window)
.sausage({
content: function (i, $page) {
return '<span class="sausage-span">'
+ $page.find('.anchor').first().text()
+ '</span>';
}
})
;
For more information or examples, check the web site or examples in the project. Be sure and follow @SausageJS for updates.
Discussion
Sign in or Join to comment or subscribe