I am working on a website, which has scroll to BOTTOM to load AJAX content.
I use this Jquery Scroll function:
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height())
{
alert("ScrollTop + Window Height = "+$(window).scrollTop()+ " + " +
$(window).height()+ " == Document Height = "+$(document).height());
// This get's alerted only when i reach TOP
}
});
But this works only if i reach TOP
Do anyone had this problem before ?