CN101588314A - A kind of method of realizing real-time display of web mail receiving progress - Google Patents
A kind of method of realizing real-time display of web mail receiving progress Download PDFInfo
- Publication number
- CN101588314A CN101588314A CNA2008101119648A CN200810111964A CN101588314A CN 101588314 A CN101588314 A CN 101588314A CN A2008101119648 A CNA2008101119648 A CN A2008101119648A CN 200810111964 A CN200810111964 A CN 200810111964A CN 101588314 A CN101588314 A CN 101588314A
- Authority
- CN
- China
- Prior art keywords
- server
- browser
- reception
- receives
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides a kind of method of realizing real-time display of web mail receiving progress, said method comprising the steps of: the user clicks the reception mail, browser sends ajax and receives mail requests to mail server, server begins to receive mail, and this request can be stopped up and just be returned after all mail reception finish; Browser sends ajax polling asks server to receive mail state; Browser gets the mail and upgrades the html progress bar after the accepting state that the server real time propelling movement comes; Browser continues to send the polling request to continue to accept the mail reception state, so circulation; Mail reception finishes, and browser receives mail requests and is returned, and whole mail reception process finishes.When user of the present invention receives mail, become " pushing away " initiatively by passive " drawing ", the ajax that " pushes away " based on server can make information or the real-time browser that is pushed to front end of state, thereby has solved the problem of the passive wait of user.In particular, when the user receives a plurality of, big mail, can see the progress bar that receives mail, make things convenient for the user to do corresponding operation.Improved efficient.Strengthened sense of experience of users.
Description
Technical field:
The present invention relates to computer software, network communication field, relate in particular to a kind of method of realizing real-time display of web mail receiving progress.
Background technology:
Email has become the important means that the user communicates by network at present.Webmail is a kind of more and more universal as Mail Clients, have exempt to install, advantage that a series of local mail clients such as auto-update, specialty virus killing and rubbish protection do not have.Traditional web mail client is based on http protocol, http protocol is the agreement of a kind of ' drawing ', the mode that is the client request of sending, server end response is worked, that is to say the webmail server can't active push information or state give the front end browser, this also just causes when the user clicks the reception mail can't have the progress of mail reception number to show as local client, ease for use is low, particularly more and when big when waiting to receive the mail number, the user does not know to have received now those mails, receive what, can only wait indefinitely to receive and finish.Lack initiative, the wait user that the web server can only be passive asks visit.
Summary of the invention:
The present invention provides a kind of method of realizing real-time display of web mail receiving progress for addressing the above problem weak point, said method comprising the steps of:
A. the user clicks the reception mail, and browser sends ajax and receives mail requests to mail server, and server begins to receive mail, and this request can be stopped up and just be returned after all mail reception finish;
B. browser sends ajax polling and asks server reception mail state;
C. browser gets the mail and upgrades the html progress bar after the accepting state that the server real time propelling movement comes;
D. browser continues to send the polling request to continue to accept the mail reception state, so circulation;
E. mail reception finishes, and browser receives mail requests and is returned, and whole mail reception process finishes.
Described step at first, the user successfully logins mailing system.
Advantage of the present invention:
When the user receives mail, become " pushing away " initiatively by passive " drawing ", the ajax (Asynchronous JavaScript+XML) that ' pushes away ' based on server can make information or the real-time browser that is pushed to front end of state, thereby has solved the problem of the passive wait of user.In particular, when the user receives a plurality of, big mail, can see the progress bar that receives mail, make things convenient for the user to do corresponding operation, improve efficient, strengthen sense of experience of users.
Description of drawings:
Fig. 1 is the schematic diagram of flow process of the present invention;
Fig. 2 is the concrete flow chart of the present invention;
Fig. 3 is the flow chart that the present invention shows the method for web mail reception progress.
Embodiment:
Central idea of the present invention is utilized the long polling technology of ajax to carry out the mail reception state server and is pushed.The appearance of AJAX (Asynchronous JavaScript+XML) makes JavaScript to send the HTTP request by call XML HttpRequest object, the JavaScript response is handled function and is upgraded according to the asynchronous demonstration to the page of information that server returns, thereby has avoided refreshing of the web page.Ajax long polling briefly is exactly that client sends a request by ajax, server receives it and does not do and return, when data or state need, in real time data are write among the response and with it and returned, client receives the laggard line correlation of data and shows that also the while transmit a request to server end once more so that receive other possible real time datas, server then continues to tangle not do and returns up to there being new data to arrive so circulation.
Elaborate below in conjunction with accompanying drawing,
This method realizes following function: after the user clicks and accepts mail, show the mail reception progress bar in real time on browser, the user can be interrupted mail reception in its process, and progress bar was closed automatically after mail reception finished.
Therefore the technical scheme of the technical problem that solves of the present invention is: use AJAX to realize that " server push " and traditional AJAX use difference and be:
1. server end can block request up to data passes being arranged or overtimely just returning.
2. client JavaScript response is handled function and can be sent request once more after handling the information that server returns, and rebulids connection.
The data that receive when client process, rebulid when connecting, server end has new data and arrives; These information can serviced device end preservation rebulid connection up to client, and client can be once all information retrieval of current server end.
As shown in Figure 1, 2, a kind of method of realizing real-time display of web mail receiving progress may further comprise the steps:
201. client sends a request by ajax, server receives it and does not do the arrival of returning the wait propelling data;
202. when data or state needed, server was write data among the response and with it in real time and is returned;
203. client receives, and the laggard line correlation of data shows and the while transmit a request to server end once more so that receive other possible real time datas;
Return up to there being new data to arrive 204. server then continues not do, so circulate.
As shown in Figure 3, for receiving mail, a kind of detailed step of method of realizing real-time display of web mail receiving progress is:
301. the user clicks the reception mail, browser sends ajax and receives mail requests to mail server, and server begins to receive mail, and this request can be stopped up and just be returned after all mail reception finish;
302. sending ajax polling, browser ask server to receive mail state;
Upgrade the html progress bar after the accepting state that the server real time propelling movement is come 303. browser gets the mail;
304. browser continues to send the polling request to continue to accept the mail reception state, so circulation;
305. mail reception finishes, browser receives mail requests and is returned, and whole mail reception process finishes.
Claims (2)
1, a kind of method of realizing real-time display of web mail receiving progress is characterized in that, said method comprising the steps of:
A. the user clicks the reception mail, and browser sends ajax and receives mail requests to mail server, and server begins to receive mail, and this request can be stopped up and just be returned after all mail reception finish;
B. browser sends ajax polling and asks server reception mail state;
C. browser gets the mail and upgrades the html progress bar after the accepting state that the server real time propelling movement comes;
D. browser continues to send the polling request to continue to accept the mail reception state, so circulation;
E. mail reception finishes, and browser receives mail requests and is returned, and whole mail reception process finishes.
2. method according to claim 1 is characterized in that: described step at first, the user successfully logins mailing system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101119648A CN101588314A (en) | 2008-05-19 | 2008-05-19 | A kind of method of realizing real-time display of web mail receiving progress |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101119648A CN101588314A (en) | 2008-05-19 | 2008-05-19 | A kind of method of realizing real-time display of web mail receiving progress |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101588314A true CN101588314A (en) | 2009-11-25 |
Family
ID=41372383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101119648A Pending CN101588314A (en) | 2008-05-19 | 2008-05-19 | A kind of method of realizing real-time display of web mail receiving progress |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101588314A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104735151A (en) * | 2015-03-30 | 2015-06-24 | 努比亚技术有限公司 | Process bar control method, device and system |
CN106708505A (en) * | 2016-11-15 | 2017-05-24 | 武汉烽火网络有限责任公司 | WEB page-based batch operation interface application method and system |
-
2008
- 2008-05-19 CN CNA2008101119648A patent/CN101588314A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104735151A (en) * | 2015-03-30 | 2015-06-24 | 努比亚技术有限公司 | Process bar control method, device and system |
CN106708505A (en) * | 2016-11-15 | 2017-05-24 | 武汉烽火网络有限责任公司 | WEB page-based batch operation interface application method and system |
CN106708505B (en) * | 2016-11-15 | 2019-09-06 | 烽火通信科技股份有限公司 | A kind of application method and system at the batch operation interface based on WEB page |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101447949B (en) | Information interaction method and device based on instant messaging system | |
CN101299731A (en) | Instant communication method and apparatus based on Web | |
CN109639564A (en) | A kind of method, apparatus and computer readable storage medium obtaining offline message | |
CN103124263A (en) | Advertisement serving system, advertisement serving device and advertisement server | |
CN104052655A (en) | Group chatting method and instant messaging client-side | |
WO2012000228A1 (en) | Method for group communication implemented on common web page | |
CN101247368A (en) | User search method, system, server and client terminal for instant communication | |
CN109756428A (en) | Advertisement placement method and device | |
CN104023020A (en) | TypeB message subscription and push system for mobile equipment and corresponding method | |
CN106060075B (en) | A method of realizing webpage anonymous chat | |
CN104378436A (en) | Information push system and method based on server push | |
CN103095684A (en) | Method obtaining attention user aggregate information, device and system | |
CN105025047A (en) | Cloud desktop pushing method, system and pushing end and receiving end | |
CN102394880A (en) | Method and device for processing jump response in content delivery network | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN114124490B (en) | Method and device for publishing new media content, storage medium and electronic equipment | |
CN102904801A (en) | Message alert method and device | |
CN103997482A (en) | Method of user registration in desktop cloud service, and system | |
CN104579929A (en) | Hairdressing software sharing method and device | |
CN101888404A (en) | Data updating method and device for mobile equipment | |
CN101599921A (en) | A kind of enterprise instant communication system and document transmission method thereof | |
CN102150151B (en) | Asynchronous queued messaging for Web applications | |
CN102685209A (en) | Method, device and facility for assisting user equipment to receive and dispatch instant message | |
CN102045274B (en) | Method and communication system for realizing information interaction based on instant messaging | |
CN101588314A (en) | A kind of method of realizing real-time display of web mail receiving progress |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091125 |