if you use JQM:
It was a long time to find a way to find good code, to recognize bottom of the page, and to load more content.
Finally i used this:
$(window).scroll(function() {
if($(window).scrollTop() + window.innerHeight == $(document).height()) {
NameFunctionWhatCallsAjax();
}
});
And I put this in my header:
<meta name="viewport" content="width=device-width, initial-scale=1">
It works on Iphone and other mobile devices too.
in NameFunctionWhatCallsAjax(); function you call make for example ajax call for new rows.
I hope it will work for you too.
And in ajax success put for example:
success: function(response){
$('#loading').remove();
$('.infinite-container').append(response);
$('.infinite-container').append("<li id='loading'>Lo9ading new rows..</li>");
$('.infinite-container').listview('refresh');
}
You need to refresh to have the same visual look like jquery mobile have because of jquery mobile themes.