Add infinite scrolling to your site with scrollExtend and jQuery

You may also like...

Sponsored Links...

Subscribe to Design Haven UK

Enter your email address to subscribe and receive our new posts by email.

4 Responses

  1. stuart says:

    all works nicely but how do you get it to stop.

    If I have 500 items in a dB that I want to display and I am returning them in chunks of 50, how do I let it now not to return anymore ?

    • The easiest way would be to remove the anchor when you reach the target amount. So, in the onSuccess callback you could add something like:


      if (offset >= finalAmount)
      $('#actualResults').removeAttr('id');

      finalAmount should be set to the amount of results you have in your database.

  2. If I want to stop scroll after 20 record. how i can do this.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: