i am using this code in my html page for loading more data when user scroll to the bottom of page.
if($(window).scrollTop() + $(window).height() == $(document).height()) //user scrolled to bottom of the page?
i have also tried this:
if($(window).scrollTop() + $(window).innerHeight() == $(document).innerHeight()) //user scrolled to bottom of the page?
i don't now what is wrong with ie8 but it dose not work on it. is there any way to make it run?
update seems like problem was from .scrolltop() i find a code on the web and replace it like this:
var sTop = document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0;
if(sTop + $(window).height() == $(document).height()) //user scrolled to bottom of the page?
it worked, but i have no idea about the first line and just copied it.is this standard? can it be used?