How are the facebook chat windows implemented?

北战南征 提交于 2019-11-27 13:15:44

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.

Probobly just an absolutely positioned div, containing a scrolling div for the content. Ajax would provide the content.

The chat windows do indeed refresh when you load a new page, they maintain their viewstate however (open/close/chat history).

It's an absolutely positioned div, positioned at the bottom of your browser window. It's not hard, I cloned the Facebook chat for ClockingIT from scratch in a weekend.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!