The present invention provides a method for real-time display of web mail receiving progress, the method comprises the following steps: the user clicks to receive mail, send mail to Ajax mail server browser receives the request, the server starts to receive mail, the request will be blocked to all messages returned after receiving the request sent to the polling browser; the Ajax server receives a message the browser receives the mail server; receiving state real-time push over the updated HTML progress bar; browser continues to send a polling request to continue to receive mail receiving state, so the cycle; to receive mail after receiving mail request is returned to the browser, the mail receiving end. The user receives a message, from passive to active \pull\ and \push\, \push\ the Ajax server can make the browser information or real-time pushed to the front end based on the user, so as to solve the problem of passive waiting. More specifically, when a user receives multiple, large messages, a progress bar for receiving messages can be seen, which facilitates the user to do the corresponding operation. Improved efficiency. Enhance the user's sense of experience.
【技术实现步骤摘要】
本专利技术涉及计算机软件、网络通信领域,尤其涉及一种实时显示 web邮件接收进度的方法。 背景4支术电子邮件,目前已经成为用户通过网络进行通信的重要手段。Web mail作为邮件客户端的一种已经越来越普及,有着免安装、自动升 级、专业杀毒及垃圾防护等一系列本地邮件客户端没有的优点。传统 的web mail client是基于HTTP协议的,HTTP协议是一种'拉,的 协议,即客户端发出请求、服务器端响应的方式工作,也就是说web mail服务器无法主动推送信息或状态给前端浏览器,这也就造成当 用户点击接收邮件时无法像本地客户端一样有邮件接收个数的进度 显示,易用性低,特别是当待接收邮件个数较多而大时,用户不知道 现在接收了那些邮件,接收的多少,只能死等接收结束。缺乏主动性, web服务器只能被动的等待用户请求访问。
技术实现思路
本专利技术为解决上述问题不足之处,提供了 一种实时显示web邮件 接收进度的方法,所述方法包括以下步骤A. 用户点击接收邮件,浏览器发送ajax接收邮件请求到邮件服 务器,服务器开始接收邮件,该请求会堵塞到所有邮件接收完毕后才 返回;B. 浏览器发送ajax polling请求到服务器接收邮件状态;C. 浏览器收到邮件服务器实时推送过来的接收状态后更新html进3度条;D. 浏览器继续发送polling请求以继续接受邮件接收状态,如此 循环; .E. 邮件接收完毕,浏览器接收邮件请求被返回,整个邮件接收过 程结束。所述步骤首先,用户成功登录邮件系统。 本专利技术的优点用户接收邮件时,由被动的拉变为主动的推,,,基于服务 器'推 ...
【技术保护点】
一种实时显示web邮件接收进度的方法,其特征在于,所述方法包括以下步骤: A.用户点击接收邮件,浏览器发送ajax接收邮件请求到邮件服务器,服务器开始接收邮件,该请求会堵塞到所有邮件接收完毕后才返回; B.浏览器发送ajax p olling请求到服务器接收邮件状态; C.浏览器收到邮件服务器实时推送过来的接收状态后更新html进度条; D.浏览器继续发送polling请求以继续接受邮件接收状态,如此循环; E.邮件接收完毕,浏览器接收邮件请求被返 回,整个邮件接收过程结束。
【技术特征摘要】
1、一种实时显示web邮件接收进度的方法,其特征在于,所述方法包括以下步骤A.用户点击接收邮件,浏览器发送ajax接收邮件请求到邮件服务器,服务器开始接收邮件,该请求会堵塞到所有邮件接收完毕后才返回;B.浏览器发送ajax polling请求到服务器接收邮件状态;C.浏览器...
【专利技术属性】
技术研发人员:关键,
申请(专利权)人:北京亿企通信息技术有限公司,
类型:发明
国别省市:11[中国|北京]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。