7

On twitter (new twitter) and facebook they now have the the ability to load new tweets and posts when you hit the bottom of the page..

Is there a JavaScript / jQuery event that you can call / add to a div so when the browser hits the bottom it does some ajax call to get the new data?

Thanks

Daniel

Daniel Vassallo
  • 337,827
  • 72
  • 505
  • 443
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64

3 Answers3

5

There's a jQuery plugin for that: Infinite Scroll jQuery Plugin.

And here's the description of the pattern that it implements: The Interaction Design Pattern.

Daniel Vassallo
  • 337,827
  • 72
  • 505
  • 443
  • 1
    @Daniel Upton: I'm glad the answer was helpful. You may want to mark it as "accepted" by clicking on the green tick on the left, it you think it is the best answer for your question. – Daniel Vassallo Oct 05 '10 at 12:38
1

It's called "Lazy Loading"

a plugin for jquery: http://www.appelsiini.net/projects/lazyload

in fact there are many plugins: http://www.google.com/search?q=lazy+loading+jquery

googling for Lazy Loading will help you a load :) http://www.google.com/search?q=lazy+loading

Stefanvds
  • 5,868
  • 5
  • 48
  • 72
1

It's called Infinite Scrolling, and there's a jQuery plugin for it here: http://www.infinite-scroll.com/

RichieHindle
  • 272,464
  • 47
  • 358
  • 399