I googled a开发者_运维问答 bit but in vain. I want to know if there is any gem for pagination that uses scrollbar position to load more data. I meant to say that when scrollbar reaches bottom, I want to load more items list from ajax request and show them.
Thanks in advance.
There's a question on "Endless Scroll" and the answer was to use jquery.pageless: https://github.com/jney/jquery.pageless
Heres a blog that implements this: http://pedromtavares.wordpress.com/2011/05/08/endless-page-scrolling-with-rails-3-and-jquery/
I don't think there's a gem for the js part, but for the usual pagination you could check out will_paginate and create the js yourself.
精彩评论