Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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;
 
$(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 11-Dec-12 2:26am
bounik424
Comments
Sheikh Muhammad Haris at 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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 432
1 sanket saxena 355
2 Abhinav S 258
3 OriginalGriff 235
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,704
1 OriginalGriff 5,000
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid