CN101039283B - Method for processing e-mail - Google Patents

Method for processing e-mail Download PDF

Info

Publication number
CN101039283B
CN101039283B CN200610034457XA CN200610034457A CN101039283B CN 101039283 B CN101039283 B CN 101039283B CN 200610034457X A CN200610034457X A CN 200610034457XA CN 200610034457 A CN200610034457 A CN 200610034457A CN 101039283 B CN101039283 B CN 101039283B
Authority
CN
China
Prior art keywords
page
user
mouse
client
mail
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.)
Active
Application number
CN200610034457XA
Other languages
Chinese (zh)
Other versions
CN101039283A (en
Inventor
母天石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN200610034457XA priority Critical patent/CN101039283B/en
Publication of CN101039283A publication Critical patent/CN101039283A/en
Application granted granted Critical
Publication of CN101039283B publication Critical patent/CN101039283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an email checking method. According to the user's operation requirement, the client terminal checks the email on the net page, including the following steps: a. a Ajax engine installed in the net page deals with the user's operation requirement, and sends to a server in way; b. according to the user's operation requirement, the server feedbacks the processing result to the client terminal, and the processing result is dealt by the Ajax engine and shown on the net page. The Ajax method brings a more simple and smooth email operation for the users, and suits even more the users' customs with better feeling, at the same time, reduces the usage of the net bandwidth and the load of the server terminal.

Description

A kind of method of handling Email
Technical field
The present invention relates to network electronic mail, more particularly, relate to a kind of Ajax of utilization method is handled Email in the drag and drop mode on WebMail method.
Background technology
Ajax (Asynchronous JavaScript and XML) is to use the Web application and development method of client script and Web server swap data.Combine existing many web application development technique.
Simply be expressed as:
Use XHTML and CSS as with the interface of user interactions, present data to the user.
Use DOM (Document Object Model) dynamic display information and carry out alternately with the user.
Use the data of XML and XLST encapsulated delivery.
Use XMLHttpRequest to realize the asynchronous transmission of data.
Using JavaScript that above these are organically combined realizes near local desktop application, direct, high available, abundanter, more dynamic web application.
Like this, the Web page need not interrupt interaction flow and reload, and just can dynamically upgrade.Use Ajax, you can create near local desktop application, direct, high available, abundanter, more dynamic Web user interface.
WebMail: be meant the mailing system that number of site provides with the form web page appearance, after the user lands the mailing system of these websites by browser, can carry out various operations to mail, be similar to general Mail Clients software, the function that provides as OutLook, FoxMail etc.
At present mainly by dual mode transmitting-receiving, managing email.A kind of is by client software, as OutLook, FoxMail etc.Another kind is by the WebMail mode, logs on certain website and operates.
Mail Clients software (as OutLook, FoxMail) can both be realized deleting mail or mail is moved into another mailbox (as moving into the spam case from inbox) from a mailbox substantially by mail drag and drop mode, promptly when needs are deleted an envelope or are sealed mail more, only need need to select the mail of deletion, directly drag to waste box then and get final product.In like manner, also can be dragged to other mailbox (as inbox) to an envelope for the mail of spam from the spam case by system's erroneous judgement.Therefore, the user can be random an envelope or seal mail more is dragged to other mailbox from a mailbox as required.
If but the user checks, when operating mail, as logs on and check on the Web of certain mail server and when operating mail, as shown in Figure 1 and Figure 2 by the WebMail mode.
When the user carries out associative operation to mail, as moving an envelope from inbox or sealing mail more to the spam case, need at first to select mobile mail, button on the webpage clicking then, client can be to backstage Web server transmit operation request in button response events processing function, this moment, the user can not carry out any other operation again, unless switch to other page.Web server can be operated accordingly on the backstage after receiving client-requested, for example, if inbox is the file that is kept at respectively under the different catalogues with mail in the spam case, then server can move to spam case corresponding file folder to the corresponding document under the corresponding catalogue of inbox, upgrade index simultaneously, rerun respective page background script (as the ASP script) then, and the current operation pages after the user sends renewal, after client is received the page that has upgraded, reload this page, at last, user's part is seen the result after the operation, there has not been this envelope mail in the mail tabulation of current inbox, when the user switches in the spam case, will have seen the mail of removing just now.
From the above, because the restriction (as above-mentioned drag and drop mail) of traditional Web program implementation structure, because each drag and drop all need to carry out synchronous interaction with Web server, reload the page, so could continue next step operation after the user needs waiting for server end operation to finish or browse at every turn, both delayed user's time, operate not smooth, it is poor that the user feels, but also increased the load of network bandwidth flow and server end.
Summary of the invention
The technical problem to be solved in the present invention is, delay user time, operation is not smooth, the user feels difference and increases network bandwidth flow and server end defectives such as load at prior art above-mentioned, provide a kind of Ajax of utilization method on WebMail, to handle the method for Email in the drag and drop mode.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method of handling Email, client may further comprise the steps after according to user's operation requests the Email of the page being handled:
A. by the Ajax engine that embeds the described page described user's operation requests is handled, and sent to server with asynchronous system;
B. the result that described server will be handled according to described user's operation requests returns to described client, is handled described result and is presented in the described page by described Ajax engine.
In method of the present invention, described operation requests is meant the operation requests that the Email to the described page moves or deletes.
In method of the present invention, before carrying out described step a, further comprise:
A1. client browser responds the selection incident, and by the Ajax engine described incident is handled accordingly;
A2. described browser response user operates corresponding incident, and by the Ajax engine incident of correspondence is handled accordingly, and described user's operation comprises under the mouse by incident, mouse moving event or mouse release event;
A3. finish processing, and customer terminal webpage is upgraded, and send to server with asynchronous system by the Ajax engine to described user's operation requests;
A4. the server result that will handle according to described user's operation requests returns to described client, is handled described result and is presented in the described page by described Ajax engine.
In method of the present invention, described operation requests is meant the operation requests that the Email to the described page moves or deletes.
In method of the present invention, in described step a1, described processing comprises:
A11. in the HTML of the described page, generate mark, and the value of the position attribute of the Style attribute of the HTML mark that needs drag and drop is made as absolute;
A12. according to the Click incident of described mark correspondence, in the JavaScript of html page script, utilize the DOM technology to change the value of its Style association attributes, to highlight selected Email.
In method of the present invention, in described step a2, described processing comprises:
A21. obtain the object that causes under the described mouse by incident, and the relative position of current mouse, and go out the absolute position of all selected mails be expert at respect to the full page body according to this calculation and object of obtaining;
A22. obtain the relative position that the current mouse that causes described mouse moving event moves, and then calculate and the deviant of the last mouse relative position of preserving, choose mail be expert to calculate the new position of these row according to all that calculate among the step a21, and change the value of the Style association attributes of the pairing HTML tagged object of every capable mail tabulation with respect to the absolute position of full page body;
A23. according to described mouse release event, the operation that selected all mails be expert at is moved or deleted from current page.
In method of the present invention, among the described step a21, described absolute position be by the one-level one-level obtain the relative value of its parent object, at last described relative value is added up.
In method of the present invention, among the described step a22, the value of described association attributes is meant the value of style.top and style.left.
In method of the present invention, described step a23 also comprises and will be buffered in partial information completion in the subsequent page of current page of client in described current page, and shows as a complete page in described current page.
In method of the present invention, to finish after the described step a3, described client continues to receive the new operation requests of user.
In method of the present invention, transfer of data, data processing and the data computation of described Ajax engine and server end is to carry out in that client background is asynchronous.
In method of the present invention, the data format that described server returns the result of client is text formatting or XML form.
The invention has the beneficial effects as follows, make that user's operation by WebMail deletion, mobile e-mail the time is more succinct, smooth, meet user's custom more, it is better that the user feels, reduce the time of user's waiting system operation to a great extent, also reduce the load of network bandwidth utilization and server end simultaneously.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 uses conventional method to realize the flow chart of mobile e-mail on WebMail;
Fig. 2 is the sequential chart of Fig. 1 client and server end in transfer of data;
Fig. 3 is the flow chart that the present invention realizes mobile e-mail;
Fig. 4 is the sequential chart of Fig. 3 client and server end in transfer of data.
Embodiment
Utilize the Ajax method operates mail on WebMail flow process as shown in Figure 3.
When the user selects to need the mail of operation (in the step 300), for example, click the mail in the mail tabulation or choose the check box of front that corresponding mail tabulation is expert at, at this moment will trigger events corresponding (as the Click incident).This is selected in event procedure (in the step 302) in response, and the JavaScript function of being responsible for handling corresponding event utilizes DOM (DocumentObject Model) technology to operate various objects in the html page.For example, if be expert at when selecting an envelope mail by clicking selected mail during the user, in handling function, will come the selected mail tabulation of outstanding behaviours, for example, make (in the steps 304) such as the residing capable background color changes of selected mail tabulation by change color.Simultaneously, selected mail tabulation information is expert at makes a mark, for example, list information (title, sender, date, size etc.) to every envelope mail is marked in HTML<DIV 〉, so in the Click of this mark correspondence event response function, can utilize the DOM technology to change the value (promptly and the value of the position attribute of the Style attribute of the HTML mark that needs drag and drop being made as absolute) of its Style attribute, represent that this envelope mail (i.e. this row) is selected.
Then, by responding the operation (in the step 306) that three main mouse event MOUSEDOWN, MOUSEMOVE and MOUSEUP come process user drag and drop mail.Because present browser all has this several incidents, therefore, can realize by browser like this.The detailed process that these three incidents realize is as follows:
(1) in the step 308, in each row mail tabulation, all catch MOUSEDOWN incident (being under the mouse) by incident, in the processing function of MOUSEDOWN incident, the attribute of the Event object that sends by browser obtains the object (as the row mail tabulation) of this incident of initiation, the relative position of current mouse, and calculates the absolute position of this object with respect to the full page body.Simultaneously, all mail tabulations of current page are scanned, and all choose the absolute position of mail be expert at respect to the full page body to use the position calculation of the object of this incident of triggering to go out other.At last all information of obtaining are previously preserved, comprise current mouse relative position, all choose mail be expert at respect to absolute position of full page body etc.This absolute position is by obtaining the relative value of its parent object step by step, at last described relative value being added up.
(2) in the step 310, in each row mail tabulation, all catch MOUSEMOVE incident (being the mouse moving event), in the MOUSEMOVE event handling function, the attribute of the Event object that sends by browser obtains the relative position of current mouse, and then calculates the deviant with the mouse relative position of preserving previously.Calculate according to the position that this deviant and all selected mails of preserving previously are expert at, obtain the new absolute position of these row with respect to the full page body, and, so just can simulate the effect that all selected mails are expert at and are followed mouse to move by the like attributes such as Left, Top in the Style attribute that changes the pairing HTML mark of every capable mail tabulation (as DIV) object.
(3) in the step 312, in each mailbox tabulation, all catch MOUSEUP incident (being the mouse release event), in the processing function of MOUSEUP incident, all mail tabulations by the scanning current page, all selected mail tabulations, and move or delete (at this moment, in fact only delete the mail of customer terminal webpage, the mail of server-side page not deletion) (in step 314) from current page.Simultaneously; system usually can be in subscription client buffer memory part mail tabulation information (as the mail tabulation information of 10 pages of buffer memorys); at this moment; if the information of this page subsequent page is arranged in the buffer memory, and (as this page or leaf is the 10th page; the 11st page information is arranged) in the buffer memory; system just uses this page or leaf of partial information completion in the subsequent page in the buffer memory so; and in current page, show as a complete page; do not need this moment to load full page from server again; only need carry out this locality to the subregion in the page refreshes and gets final product; the just almost existence of imperceptible this operation of user like this is just as using Mail Clients software (as OutLook; FoxMail) operation is the same.
Then, system can send the real deletion or the operation requests of mobile e-mail to mail server at another thread of the asynchronous use of client background, for example is responsible for mutual (in the step 316) with server end by the Ajax engine.Arrived this step of step 316, the user just can continue to carry out other operation at current page, for example continues to receive user's new operation requests.The sequential chart of asynchronous process does not need waiting for server end of operation user just can carry out other operation as shown in Figure 4, can reduce the time that the user waits for like this.
And different for the server-side processes aforesaid operations request in the asynchronous process with traditional server-side processes mode, mainly show in the transmission of data.Traditional processing normally generates the new data of requests for page at server end, send client then to and carry out renewal of the page.Under the asynchronous process mode of introducing Ajax, with transfer of data, data processing and the data computation etc. of server end all is to carry out in that client background is asynchronous, not other operation of interference user front end, and then the subregion of the current browsing pages of user is upgraded according to result, make the user imperceptible like this in wait, operate very smoothly, also reduced simultaneously load server end.
When server end receives client-requested, on server, move or delete the associative operation of mail, return the result of processing behind the end of operation.If the result who returns is fairly simple, that for example return is the result who shows that operation is whether successful, so can be with simple text formatting return data; If the more complicated of returning as a result, what for example return is a tables of data, can use XML format organization data so and return to client, resolve in client then, and the result after will resolving upgrades some zones of the page.
Client receive that server end returns as a result the time, the response of server is also carried out asynchronous operation in client background, can't influence the operation on user foreground.In general, the result that server returns normally indicates on the server the whether success of mail deletion or move operation, if failure, at this moment certain part (as status bar) of the current page that can browse the user of system provides an apparent in view descriptive information, and the reason of failing etc. be described.
The present invention describes by above-mentioned specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.In addition, at particular condition or concrete condition, can make various modifications to the present invention, and not depart from the scope of the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole execution modes that fall in the claim scope of the present invention.

Claims (9)

1. a method of handling Email is characterized in that, client may further comprise the steps after according to user's operation requests the Email of the page being handled:
A1. client browser responds the selection incident, and by the Ajax engine described incident is handled accordingly;
A2. described browser response user operates corresponding incident, and by the Ajax engine incident of correspondence is handled accordingly, and described user's operation comprises under the mouse by incident, mouse moving event or mouse release event;
A3. finish processing, and customer terminal webpage is upgraded, and send to server with asynchronous system by the Ajax engine to described user's operation requests;
A4. the server result that will handle according to described user's operation requests returns to described client, is handled described result and is presented in the described page by described Ajax engine.
2. method according to claim 1 is characterized in that, described operation requests is meant the operation requests that the Email to the described page moves or deletes.
3. method according to claim 1 is characterized in that, in described step a1, described processing comprises:
A11. in the HTML of the described page, generate mark, and the value of the position attribute of the Style attribute of the HTML mark that needs drag and drop is made as absolute;
A12. according to the Click incident of described mark correspondence, in the JavaScript of html page script, utilize the DOM technology to change the value of its Style association attributes, to highlight selected Email.
4. method according to claim 1 is characterized in that, in described step a2, described processing comprises:
A21. obtain the object that causes under the described mouse by incident, and the relative position of current mouse, and go out the absolute position of all selected mails be expert at respect to the full page body according to this calculation and object of obtaining;
A22. obtain the relative position that the current mouse that causes described mouse moving event moves, and then calculate and the deviant of the last mouse relative position of preserving, choose mail be expert to calculate the new position of these row according to all that calculate among the step a21, and change the value of the Style association attributes of the pairing HTML tagged object of every capable mail tabulation with respect to the absolute position of full page body;
A23. according to described mouse release event, the operation that selected all mails be expert at is moved or deleted from current page.
5. method according to claim 4 is characterized in that, among the described step a21, described absolute position is by obtaining the relative value of its parent object step by step, at last described relative value being added up.
6. method according to claim 4, it is characterized in that, described step a23 also comprises and will be buffered in partial information completion in the subsequent page of current page of client in described current page, and shows as a complete page in described current page.
7. method according to claim 1 is characterized in that, finishes after the described step a3, and described client continues to receive the new operation requests of user.
8. method according to claim 1 is characterized in that, transfer of data, data processing and the data computation of described Ajax engine and server end is to carry out in that client background is asynchronous.
9. method according to claim 1 is characterized in that, the data format that described server returns the result of client is text formatting or XML form.
CN200610034457XA 2006-03-14 2006-03-14 Method for processing e-mail Active CN101039283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610034457XA CN101039283B (en) 2006-03-14 2006-03-14 Method for processing e-mail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610034457XA CN101039283B (en) 2006-03-14 2006-03-14 Method for processing e-mail

Publications (2)

Publication Number Publication Date
CN101039283A CN101039283A (en) 2007-09-19
CN101039283B true CN101039283B (en) 2010-09-01

Family

ID=38889922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610034457XA Active CN101039283B (en) 2006-03-14 2006-03-14 Method for processing e-mail

Country Status (1)

Country Link
CN (1) CN101039283B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325191A (en) * 2011-10-08 2012-01-18 新一站保险代理有限公司 Fully automatic treatment method and frame without page refresh

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200985A (en) * 2010-03-23 2011-09-28 深圳市金蝶中间件有限公司 Correspondence device and method of webpage and document object model (DOM)
CN102479074B (en) * 2010-11-24 2016-01-20 康佳集团股份有限公司 A kind of method, device and application system of following the tracks of GUI list refreshing content
CN108322385A (en) * 2018-01-19 2018-07-24 论客科技(广州)有限公司 A kind of new mail arrival notice method, system and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521667A (en) * 2003-01-29 2004-08-18 联想(北京)有限公司 Mail transmitting-receiving system and method
CN1645392A (en) * 2005-03-01 2005-07-27 北京立通无限科技有限公司 Receiving, transmitting and managing method for wireless mobile terminal E-mail

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521667A (en) * 2003-01-29 2004-08-18 联想(北京)有限公司 Mail transmitting-receiving system and method
CN1645392A (en) * 2005-03-01 2005-07-27 北京立通无限科技有限公司 Receiving, transmitting and managing method for wireless mobile terminal E-mail

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2003-58477A 2003.02.28
JP特开2004-54665A 2004.02.19

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325191A (en) * 2011-10-08 2012-01-18 新一站保险代理有限公司 Fully automatic treatment method and frame without page refresh
CN102325191B (en) * 2011-10-08 2013-06-12 新一站保险代理有限公司 Fully automatic treatment method and frame without page refresh

Also Published As

Publication number Publication date
CN101039283A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
US8185591B1 (en) Systems and methods for viewing email attachments as thumbnails
CN100592292C (en) Web page screen-cutting system and implementation method
Nichols et al. High-latency, low-bandwidth windowing in the Jupiter collaboration system
CN102792244B (en) Preview function for increasing surfing
US8131591B2 (en) Updating contents of asynchronously refreshable webpages
US9383911B2 (en) Modal-less interface enhancements
US9026583B2 (en) Method and apparatus for polymorphic serialization
JP5857443B2 (en) Content sharing system
US8032597B2 (en) Enhancement of e-mail client user interfaces and e-mail message formats
US8656274B2 (en) Automatic identification and storage of context information associated with phone numbers in computer documents
CN105045887B (en) The system and method for mixed mode cross-domain data interaction
US7430739B2 (en) Providing travel log integration for objects hosted in a browser
CN106293352B (en) Page construction method, terminal and server
CN103210371A (en) Content preview
US20080022229A1 (en) Methods and systems for enhancing internet experiences using previews
US20070061486A1 (en) Systems and methods for creating customized applications
US20070136268A1 (en) Just in time loading list
US8112470B2 (en) Virtual javascript object notation
US20100031185A1 (en) Web page push to new window
US20010047375A1 (en) Method for selecting multiple hyperlinks
US9275165B2 (en) Method and apparatus for defining an application to allow polymorphic serialization
CN101599159A (en) A kind of asynchronous interactive method of network shopping cart
CN101039283B (en) Method for processing e-mail
CN106528587A (en) Page display method and apparatus in composite webpage system
US20090043813A1 (en) Embedding a Representation of an Item in a Host

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant