简体   繁体   English

在rails中实现“无限页面”的最佳方式?

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

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. 关于这一点有一个不错的轨道 ,但Ryan承认他的解决方案不适用于IE。

What's the best way to accomplish this in Rails (preferably in a jQuery-friendly fashion)? 在Rails中实现这一目标的最佳方法是什么(最好是以jQuery友好的方式)?

刚试过jQuery.pageless ,它运行得很好。

This is the Rails plugin that works in the IE, Opera and FF: http://bewhite.blogspot.com/2008/05/rails-endless-page-plugin.html 这是适用于IE,Opera和FF的Rails插件: http//bewhite.blogspot.com/2008/05/rails-endless-page-plugin.html

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM