显示*浏览器*负载指示灯(当回发等)对AJAX调用 [英] Display *browser* loading indicator (like when a postback occurs) on ajax calls

查看:133
本文介绍了显示*浏览器*负载指示灯(当回发等)对AJAX调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:去你的Facebook墙,滚动页面的最后,Facebook将加载更多的墙上帖异步。或者点击在墙上后的图像。图像对话框(意见和大图)正在加载的异步作为良好。 (你可以看到萤火虫的GET请求)。

example: Go to your Facebook wall, scroll the end of the page, Facebook will load more wall posts asynchronously. Or just click on an images in your wall post. The image dialog (with comments and larger image) is loading asynchronously as well. (You can see the GET requests with firebug).

不过,通过观察和Firefox的标签,你看到的负载指示灯,当回发发生时就像。

But by looking and the firefox tab, you see the loading indicator, just like when a postback occurs.

我知道这可以通过使用的IFrame 并改变它的src来实现。就像什么的iGoogle 一样。但我不知道如果Facebook使用一个iframe来加载其他墙壁职位。有另一种方式来实现这一目标?

I know this can be achieved by using an IFrame and changing its src. Just like what iGoogle does. But I'm not sure if Facebook uses an IFrame to load additional wall posts. Is there another way to achieve this?

更新:说加载指示灯我不是故意的AJAX指标
正如我所提到的的浏览器指示灯的(一个在标签的laft一边向我们展示,如果页面加载)更改为装载就像是一个回发。

Update: by saying "loading indicator" I did not mean an ajax indicator.
As I mentioned the browser indicator (the one at the laft side of a tab showing us if the page is loading) changes to loading like it is a postback.

推荐答案

不AFAIK。 我的猜测是,他们可能设置IFRAME SRC一个Ajax方法和加载时,他们移动的内容,以一个div(或其它元素)。

Not AFAIK. My guess is they probably set the IFrame src to an ajax method and when loaded, they move the content to a div (or another element).

这篇关于显示*浏览器*负载指示灯(当回发等)对AJAX调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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