Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

[Request] Scroll-based infinite paging #64

Closed
stvhanna opened this issue Aug 10, 2012 · 2 comments
Closed

[Request] Scroll-based infinite paging #64

stvhanna opened this issue Aug 10, 2012 · 2 comments

Comments

@stvhanna
Copy link

A pseudo-infinite loading already exist with "Show More" on http://addyosmani.github.com/backbone.paginator/examples/netflix-infinite-paging/index.html. It would be nice to have a scroll-based infinite loading where next page's content are fetched and loading when scrolling reaches near the bottom of the page.

Similar to http://backbonetutorials.com/infinite-scrolling/ (demo: http://backbonetutorials.com/examples/infinite-scroll/), but the source code is available for download: https://github.com/thomasdavis/backbonetutorials/zipball/gh-pages. A collection already exist here: https://github.com/joneath/infiniScroll.js/blob/master/lib/infiniScroll.js that is open sourced under MIT license. Is there a way to apply infiniScroll.js to Backbone Paginator in its current state?

It would be great to be able to apply infinite scrolling to a div or body and be able to have multiple instances on the same page. The body needs CSS of overflow:scroll; and maybe even fixed/specified height. More info: http://stackoverflow.com/questions/7634529/backbone-js-detecting-scroll-event.

@mikaelharsjo
Copy link

This would be nice, did you find a solution?

@leonardehrenfried
Copy link

Incorporating DOM events is beyond the scope of the paginator. On the other hand, it shouldn't be hard to respond to the browser's scroll events and the execute the relevant methods on the paginator.

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

No branches or pull requests

3 participants