Facebook的聊天窗口如何实现? [英] How are the facebook chat windows implemented?

查看:1356
本文介绍了Facebook的聊天窗口如何实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook 上,您可以浏览网站而不影响浮动聊天窗口。似乎主页面是在iFrame内,页脚和聊天窗口浮出外面。

On Facebook you can browse the site without affecting the floating chat windows. Seems like if the main page was inside an iFrame and the footer and chat windows where floating outside.

alt text http://www.k-director.com/blog/upload/FacebookChat03.gif

iframe中的主要内容是否是iframe中的页脚和聊天窗口?

Is the main content inside an iframe or are the footer and chat windows the ones inside an iframe?

以后看起来不太可能,因为在这种情况下,当您点击主页面的链接时,一切都将重新加载,包括页脚iframe。

The later doesn't seem possible because int this case when you click in a link in the main page everything would have to reload, including the footer iframe.

如果刷新页面,聊天窗口将被重新加载,但如果您通过点击链接浏览网站,则不会。

If you refresh the page the chat windows are reloaded, but if you browse the site by clicking links they are not.

谢谢。

推荐答案

如果您安装FireBug并启用Facebook的网络监视器,您会看到当您点击最多应用程序内的链接,您没有进行全页刷新,而是使用新内容更新页面的AJAX调用。

If you install FireBug and enable the net monitor for Facebook, you'll see that when you click most links inside the application, you're not doing a full page refresh, but rather an AJAX call which updates the page with the new content.

它看起来像一个新页面,但实际上你只是在所有的东西在同一个页面上,但是替换了聊天栏。

It looks like a new page, but in reality you're on the same page with just about everything but the chat-bar replaced.

这篇关于Facebook的聊天窗口如何实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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