Click here to Skip to main content
14,545,210 members
Rate this:
Please Sign up or sign in to vote.
See more:
Guys I mean when I mouse scroll down I want to get datas like in Twitter,Facebook. what way should i follow? what kind of research should i do?

What I have tried:

I didn't do anything yet. I dotn know how do I search about this.
Updated 22-May-20 0:17am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

For web content, the term you're looking for is "infinite scroll".

In its simplest form, you use Javascript to detect when the user scrolls near to the bottom of your page, and then make an AJAX call to load more content.

For example, using jQuery:
$(window).on("scroll", function(){
    var $w = $(window);
    var $d = $(document);
    var padding = 50; // Load more if we're within 50 pixels of the bottom

    if ($w.scrollTop() >= $d.height() - $w.height() - padding) {
Maciej Los 22-May-20 8:55am
Member 14769019 22-May-20 16:28pm
I open new question. Can u check please? I shared my codes.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100