摘要
信息化的迅猛发展使人们生活方式发生深刻变革。人们之间的对话不再是局限在面对面的方式,网络聊天室提供交流信息的另一种场所。传统的聊天室为了实时显示用户在线情况和用户发送的消息,需要定时刷新页面。页面刷新不仅要占用一定的系统资源和网络带宽,而且出现“白屏”现象,对良好的用户体验很不利。Ajax是Web应用的一种新方法,利用Ajax技术开发的聊天室系统不仅解决了页面刷新带来的白屏问题,而且能降低服务器和网络传输负荷。文章介绍了Ajax技术的工作原理,以一个师生交流平台——“EM聊天室”为例描述了Ajax技术在聊天室系统实现过程中的典型应用。
The rapid development of information technology to make profound changes in people's way of life.Dialogue between people is no longer confined to face-to-face manner,network chatrooms to exchange information to provide an alternative venue.Traditional real-time chatrooms to show online and send the message,the need to regularly refresh the page.Refresh the page should not only occupy a certain degree of system resources and network bandwidth,and a "black and white" phenomenon of good user experience is a negative.Ajax is a Web application of a new method, the use of Ajax technology development system of the chat room page refreshes not only solved the problem of bringing black and white,also can reduce server load and network transmission.This paper introduces the Ajax technology works to a platform for teachers and students - "EM chatrooms" as an example to describe the Ajax technology in the chat room system in the typical application process.
出处
《计算机光盘软件与应用》
2010年第4期118-120,共3页
Computer CD Software and Application
关键词
AJAX
聊天室
异步交互
Ajax
Chat room
Asynchronous interactive