最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - How do you call a JavaScript (AJAX) function when the user reaches the end of a page to load new content? - Stack Overf

programmeradmin6浏览0评论

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

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

Share Improve this question edited Oct 6, 2010 at 7:23 Daniel Vassallo 345k72 gold badges512 silver badges446 bronze badges asked Oct 5, 2010 at 11:08 Daniel UptonDaniel Upton 5,7618 gold badges44 silver badges65 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 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.

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

It's called "Lazy Loading"

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

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

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论