From the course: Ajax with PHP: Add Dynamic Content to Websites

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Create a page of items

Create a page of items

From the course: Ajax with PHP: Add Dynamic Content to Websites

Start my 1-month free trial

Create a page of items

- [Instructor] In this chapter, we will learn how to use Ajax and PHP to implement infinite scrolling. Infinite Scrolling is a popular technique, that you may have seen, and not quite known what it was called. The idea is that when a user scrolls to the bottom of the existing page content, then additional content loads onto the page using Ajax. It's very prevalent on the internet and you've probably experienced it on sites like Facebook, LinkedIn, Twitter, or Pinterest. If you got to any of those sites, and you go to the List of Data, so the status updates, or the tweets or the images, then you can scroll to the bottom of the page, and you can watch as new content appears and that allows you to just keep scrolling. And then, when you get to the bottom of that content, just like magic, new content is loaded in the browser. And again, you can keep scrolling down that next set of results. In order to implement Infinite Scrolling, there are a few things we need to do. First, we're going…

Contents