Mayank Sharma
Mayank Sharma

Reputation: 829

How to dynamically load contents when we scroll down, like Google/Facebook does.

I have a PHP application which will display articles from the database tables but I don't want to use pagination rather when user scroll down it should load new articles and so on. Just like Google/Facebook does.

Any idea how to achieve this?

Upvotes: 1

Views: 4534

Answers (2)

Nil'z
Nil'z

Reputation: 7475

This is the best infinite scroll out there, as it works with your pagination.This is the Link

Upvotes: 3

mikakun
mikakun

Reputation: 2275

http://api.jquery.com/scroll/

handle the scroll event, make an ajax call to a php file that will send back a json or a html string to append directly, animate it a bit to make it look smooth

Upvotes: 3

Related Questions