In this answer, I have shared how to detect scroll position of page using jQuery? Use the below jQuery code to detect scroll position of page using jQuery.
1 2 3 4 5 6 7 8 9 10 11 12 | function getData() { $.getJSON('Get/GetData?no=1', function (responseText) { //Load some data from the server }) }; $(window).scroll(function() { if($(window).scrollTop() + $(window).height() == $(document).height()) { alert("bottom!"); // getData(); } }); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.