I went through many articles regarding twitter like paging using AJAX for Rails and now I’m a little bit confused. I think I didn’t find yet what I was looking for.
I have a web site, it shows the photos and has a table layout.
<table>
<% i = 0
tdCount = 3
@photos.each do |p|
if i % tdCount == 0%>
<tr>
<%end%>
<td>
<%=image_tag(p.source , {:width => 240})%>
</td>
<%if i % tdCount == (tdCount-1)%>
</tr>
<%end%>
<% i += 1 %>
<% end %>
</table>
As far as I’m concerned it’s quite difficult to use any “pageless” solution since I have a table layout. If not so, which one should I use? Which one is more modern than others and works good?
Never Ending page is nothing but the pagination in which you wont have links at the bottom like normal pagination rather your next page would get appended at the bottom of your current page when the scroll reaches at the bottom.
Please refer [rails cast endless][1]
[1]: http://railscasts.com/episodes/114-endless-page?view=comments For better understanding.
I have created it in Jquery ajax though in the link it is done using Javascript.