你如何调用JavaScript(AJAX)功能,当用户到达一个页面的最后加载新的内容? [英] How do you call a JavaScript (AJAX) function when the user reaches the end of a page to load new content?

查看:134
本文介绍了你如何调用JavaScript(AJAX)功能,当用户到达一个页面的最后加载新的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在微博(新的Twitter)和Facebook,他们现在有加载新的鸣叫和职位的能力,当你点击页面底部。

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..

有一个JavaScript / jQuery的事件,您可以调用/添加到一个div所以当浏览器撞击它做了一些AJAX调用来获取新的数据底部?

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?

感谢

丹尼尔

推荐答案

有一个jQuery插件为:的无限滚动jQuery插件

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.

这篇关于你如何调用JavaScript(AJAX)功能,当用户到达一个页面的最后加载新的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆