Following infinite scrolling script working nice on desktop and Android web browser, but not working on iPhone 4. What should I modify for make it work for iPhone and Android?
"#more" is div ID for mysql query output.
Here is part of script
var page = 1;
$(window).scroll(function () {
$('#more').hide();
$('#no-more').hide();
if($(window).scrollTop() + $(window).height() > $(document).height() - 200) {
$('#more').css("top","400");
$('#more').show();
}
if($(window).scrollTop() + $(window).height() == $(document).height()) {
$('#more').hide();
$('#no-more').hide();
page++;