What do you call the JavaScript function (AJAX) when the user reaches the end of the page to download new content?

On twitter (new twitter) and facebook they now have the ability to upload new tweets and messages when you get to the bottom of the page.

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

thanks

Daniel

+7
javascript jquery dom ajax
source share
3 answers

There is a jQuery plugin for this: An endless jQuery scroll plugin .

And here is a description of the template that it implements: Interaction design template .

+5
source share

He called "Lazy Loading"

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

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

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

+1
source share

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

+1
source share

All Articles