News for hackers. Stuff that matters.
Re:Backbone.Paginator – New Pagination Components For Backbo... by jashkenas on Friday March 30, 2012 @11:30AM (#3776404)
Quick bug report for ya. If you visit the "clientPager" demo, and navigate to any page but the first, before clicking on "show 9", or "show 12", it will break.

http://addyosmani.github.com/backbone.paginator/examples/net...

Re:Backbone.Paginator – New Pagination Components For Backbo... by obtu on Friday March 30, 2012 @11:50AM (#3776540)
?skip=N in the API is inefficient — from yesterday's discussion on infinite scrolling: https://news.ycombinator.com/item?id=3764518 https://news.ycombinator.com/item?id=3765665
Re:Backbone.Paginator – New Pagination Components For Backbo... by sheraz on Friday March 30, 2012 @01:31PM (#3777097)
I wrote something similar to this, but I use pushState so that it can be bookmarked. It creates some ugly urls, but it works.

Have you considered using pushState to achieve the same purpose?

Re:Backbone.Paginator – New Pagination Components For Backbo... by joneath on Friday March 30, 2012 @11:37AM (#3776454)
I wrote a simple Backbone module to add infinite scrolling to any view a few months back (https://github.com/joneath/infiniScroll.js).

It's good to see a classic paginator implementation though. I will take a look at the source later. Thanks for sharing.

Re:Backbone.Paginator – New Pagination Components For Backbo... by obtu on Friday March 30, 2012 @11:47AM (#3776516)
Seems like this one does both.
Re:Backbone.Paginator – New Pagination Components For Backbo... by zinssmeister on Friday March 30, 2012 @01:23PM (#3777057)
very very useful. Was just about to write my own code for this, but now gonna look into using this. Thanks for considering all major variations of pagination.
Re:Backbone.Paginator – New Pagination Components For Backbo... by Omnipresent on Friday March 30, 2012 @11:44AM (#3776504)
The live examples aren't working. Is it just me?
Re:Backbone.Paginator – New Pagination Components For Backbo... by zinssmeister on Friday March 30, 2012 @01:18PM (#3777023)
yes. Working for me.