Welcome to WebmasterWorld Guest from 54.226.2.31

Forum Moderators: open

Message Too Old, No Replies

facebook scrolling

     

hozyali

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

5+ Year Member



hello,

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

alias

8:11 am on Aug 23, 2010 (gmt 0)

10+ Year Member



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

sparklings75

11:08 pm on Aug 29, 2010 (gmt 0)

5+ Year Member



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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month