Reverse infinity scroll | Sololearn: Learn to code for FREE!

-2

Reverse infinity scroll

anybody can help in this problem ? https://stackoverflow.com/questions/45320704/asp-net-webform-infinity-scroll tks in any case

7/27/2017 7:16:48 AM

jonata

1 Answer

New Answer

0

In javascript use an event listener on the window or document and if the user scrolls up more than x amount of pixels then send and Ajax request to the server. When the server responds, you simply prepend the new data. Quite easy with jQuery's prepend() method. You can also use vanilla javascript using insertBefore.