Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi guys i am developing an ASP.NET project and in my project i want to load products when the scroll down. This code which I write below;

C#
$(window).scroll(function () {
                //console.log($(window).scrollTop().toString() + " - " + ($(document).height() - $(window).height()).toString());
                if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
                    if (isPaginationEnded) { // if previous fetch has been completed.
                        fetchProducts(categoryId, ++pageIndex);
                    }
                }
            });



works perfectly when the page zoom %100, but when the zoom change it does not working.

Any help would be greatly appreciated,

Thanks everyone.
Posted
Comments
[no name] 12-Dec-12 18:59pm    
Can you provide a little more detailed code ?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900