Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

facebook scrolling

3:17 am on Aug 23, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 7, 2008
posts: 93
votes: 0


I am not sure what is it called exactly, but I am looking to do something similar to facebook page scrolling.

eg; by default facebook loads x number of updates/posts, and when you scroll far bottom, it automatically loads more posts in the same page, how can I get this effect for my own site?

thanks for the help in advance
8:11 am on Aug 23, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 5, 2004
votes: 0

Try searching the web for "javascript loading content while scrolling".

Analyze the scripts, look how they work.

Theoretically it's rather simple:
- detect when user scrolls and reaches the bottom of the page (with some padding for flexibility)
- load the appropriate content using an ajax call
- append it to the content
11:08 pm on Aug 29, 2010 (gmt 0)

New User

5+ Year Member

joined:Aug 29, 2010
votes: 0

Yea, as alias said, just google "javascript loading content while scrolling" :
- The first result is an exemple of server side implementation ( in java )
- The second result is a jQuery plugin for the client side.

Nothing really hard there, only a little ajax pagination