Best way to implement an “endless page” in rails?

2019-04-08 09:08发布

问题:

Pagination sucks! The user should be able to scroll down forever, automatically pulling in new content when appropriate.

There's a decent rails cast about this, but Ryan admits that his solution won't work in IE.

What's the best way to accomplish this in Rails (preferably in a jQuery-friendly fashion)?

回答1:

Just tried jQuery.pageless and it's working pretty well.



回答2:

This is the Rails plugin that works in the IE, Opera and FF: http://bewhite.blogspot.com/2008/05/rails-endless-page-plugin.html

... and git repository: git://github.com/shine/endless_page