CN102130844A - Method and system for acquiring Web chat logs - Google Patents
Method and system for acquiring Web chat logs Download PDFInfo
- Publication number
- CN102130844A CN102130844A CN2010101020362A CN201010102036A CN102130844A CN 102130844 A CN102130844 A CN 102130844A CN 2010101020362 A CN2010101020362 A CN 2010101020362A CN 201010102036 A CN201010102036 A CN 201010102036A CN 102130844 A CN102130844 A CN 102130844A
- Authority
- CN
- China
- Prior art keywords
- chat record
- web
- browser
- data
- web server
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/216—Handling conversation history, e.g. grouping of messages in sessions or threads
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for acquiring Web chat logs, and belongs to the field of Web instant messaging. The method comprises the following steps that: a Web server responds to a saving request initiated by a browser and receives data which comprises the chat logs and is transmitted by the browser; and the Web server returns the data comprising the chat logs to the browser. In addition, the invention also relates to a system for acquiring Web chat logs, which comprises a Web server and a browser for implementing the method. A system that the Web server is matched with the browser, and a method for transferring the chat logs through the Web server and returning the chat logs to the browser are adopted, and all browsers can simply acquire the Web chat logs; therefore, the method has good cross-platform property.
Description
[technical field]
The present invention relates to the Web instant messaging, especially relate to a kind of method and system of the Web of obtaining chat record.
[background technology]
Traditional instant messaging generally is to adopt the method in the client login to realize, along with the continuous expansion of instant communication client function with perfect, it is increasing that client becomes, and gives to download and installation brings inconvenience.
For this reason, produced instant communication method based on Web.Adopt this mode to chat, do not need to download and install client, directly open webpage and can chat.
The webpage that surfs the web just needs to use browser, and Chang Yong browser generally is the IE of Microsoft the most, or is many browsers of kernel with IE.Along with the development and the requirements of different users of technology, browser also is diverse trends, the browser of other kernels occurred, as Firefox, and Safari, Chrome, Opera etc.
When adopting the IE browser to carry out the Web chat, if need to preserve chat record.Can directly call the windows method, the execCommand method as window.document saves as the html file with chat record, backups in the local disk, checks after waiting until.
The browser of other kernels then can't make in this way, has brought inconvenience for the preservation of Web chat record, and therefore the professional platform independence that chat record is preserved in the Web chat at present is relatively poor.
[summary of the invention]
Based on this, be necessary problem, the method for obtaining the Web chat record that provides a kind of browser that makes multiple different kernels can both conveniently preserve the Web chat record at traditional Web chat professional platform independence difference when preserving chat record.
A kind of method of obtaining the Web chat record comprises the steps: the preservation request that the web server response browser is initiated, and receives the data that comprise chat record that browser sends; Described Web server returns to browser with the described data that comprise chat record.
Preferably, described chat record also comprises historical chat record, and before the step of the preservation request that the web server response browser is initiated, also comprise step: browser obtains the data that comprise historical chat record from the message transfer server.
Preferably, the step that the described data that comprise chat record return to browser is specially: the described data that comprise chat record are handled generating the chat record file, described chat record file is returned to browser at described Web server.
Preferably, the Web server step that receives the data that comprise chat record that browser sends is specially: receive the described data that comprise chat record that browser sends with the list form; Obtain title at the hidden object that return messages acted on of this list.
Preferably, to the data of described chat record handle generate the chat record file step specifically: the data of described chat record are handled the generation web page files.
Preferably, the described step of returning the chat record file specifically: described chat record file is offered user's download as annex.
A kind of system of the Web of obtaining chat record also is provided in addition.
A kind of system that obtains the Web chat record comprises: Web server, and be used for response and preserve request, receive the data that comprise chat record, the described data that comprise chat record are returned to browser; Browser is used to initiate the request of preserving and sends the data that comprise chat record, receives the data that comprise chat record that Web server returns.
Preferably, also comprise the message transfer server, be used for transfer and preserve user's chat messages, the request that the response browser obtains historical chat record data.
Preferably, described Web server also is used for: the described data that comprise chat record are handled generating the chat record file, described chat record file is returned to browser.
Preferably, the data that described browser also will comprise chat record are sent to Web server with the form of list, and to specify at the return messages of this list object pointed be hidden object.
Preferably, described Web server chat record file that described chat record is handled generation is a web page files.
Preferably, when Web server returns described chat record file, described chat record file is offered user's download as annex.
Preferably, when described web server returns described chat record file, will act on described hidden object at the return messages of list.
Beneficial effect of the present invention is:
The system that utilizes Web server to cooperate with browser adopts chat record is returned to the method for browser then by the Web server transfer, and all browsers can simple realization obtain the Web chat record, thereby have good professional platform independence.
[description of drawings]
Fig. 1 is the flow chart of the method for obtaining the Web chat record of an embodiment;
Fig. 2 is the flow chart of the method for obtaining the Web chat record of another embodiment;
Fig. 3 is the structural representation of the system that obtains the Web chat record of an embodiment;
Fig. 4 is the structural representation of the system that obtains the Web chat record of another embodiment.
[embodiment]
Further specify below in conjunction with accompanying drawing.
As shown in Figure 1, among the embodiment, adopt following steps will obtain the Web chat record:
The preservation request that S10:Web server response browser is initiated receives the data that comprise chat record that browser sends.
When utilizing the Web chat,, have a chat window in the Web page as adopting Web QQ chat.Chat window generally comprises the prompt operation button (as sending message, expression and picture etc.) of information demonstration and some commonly used commands of message input field, message display field, chat object, also comprise in these prompt operation buttons being used to send the button of preserving the chat record order, as be shown as the button of " derivation chat record ".When the user presses the button of " derivation chat record ", just generate one and preserved request, the browser request of should preserving sends to Web server, and the message that will temporarily preserve (chat record) sends to Web server simultaneously.
In the present embodiment, browser sends the data that comprise chat record with the form of list.List is a kind of comparatively common webpage assembly that various browsers are all supported in the Web communication, and user's registration, shopping online, application function such as submit to, make comments all is based on list.
Behind the browser submission form, Web server generally all has the return messages at this list, and according to the difference that is provided with, return messages can be presented at the different pages.When sending list, specifically can adopt code as follows:
<form?method=″post″action=″/save_chatlog.php″target=″chatlog″>
<input?type=″hidden″value=″chatlog″name=″chatlog″/>
<a href=" # "〉keeping records</a 〉
</form>
Wherein:
The mode that method specifies browser to communicate by letter with Web server according to the value of method, generally has dual mode: if the value of method represents then that for " get " browser will initiatively obtain data to Web server; If the value of method is " post ", represent that then browser will send data to Web server.To send list to Web server in the present embodiment, thereby take the mode of " post ".
Action specifies the processing page of list on Web server.
The object that target specifies the return messages of Web server to handle.In the present embodiment, the value of target is " chatlog "." chatlog " is in the id and the name value of hiding forms (iframe) of the chat page, makes target when quoting " chatlog ", can make return messages point to this iframe.Can not impact so that the return messages of Web server act on this above iframe like this existing chat page.
After browser sent chat record, the described preservation request of web server response received described data, enters the processing page of appointment.
S30: described Web server returns to browser with the described data that comprise chat record.Promptly adopt through the mode that sends to browser after the Web server transfer again and obtain chat record, script is kept in the browser variable, promptly the chat record in the internal memory passes through the Web server transfer and returns to browser again, can obtain chat record easily.
The data of passback can be resolved by viewed device, chat record are illustrated in the page of browser, allow the user check.Then preserve by additive method, deposit webpage, screen interception etc. as other.
In the present embodiment, the data of passback are not resolved, but offer browser downloads as annex.
When Web server passback data, browser ejects the prompting user and preserves the prompting frame of these data.Can adopt following code to realize such scheme:
When returning the chat record file, on http header, add delegation: Content-Disposition:attachment; Filename=" WebQQ_chatlog_filename.html ".Promptly this chat record file offers user's download with the form of annex, and file is presented to the user with the filename of WebQQ_chatlog_filename.html in the prompting download frame that ejects, and the user can according to circumstances change filename in the practical operation.
In another preferred embodiment, further comprise the steps: among the step S20 the described data that comprise chat record are handled generation chat record file, described chat record file is returned to browser.In the processing page of appointment, as above-mentioned/save_chatlog.php, the data that comprise chat record in the list are generated the chat record file after treatment, after handling through Web server in theory, this chat record file can be generated as the file of any computer-readable form, as the compressed file of document, picture or above-mentioned file etc.Because what adopt is the Web chat, the content of chat record generally all is to be temporarily stored in the variable of browser with the html form, so communication for convenience, and the chat record file of being handled the back generation by Web server is the html file of web page files type.Therefore this html file can return to browser resolves or offer browser downloads with the form of annex.
Fig. 2 shows the flow process of obtaining the method for Web chat record among another embodiment.For the situation of only preserving current chat record, in the foregoing description, Web server carries out transfer with the data of the transmission of browser can be realized.Yet the situation for preserving historical chat also needs to obtain the historical chat record that is kept in the message transfer server.Be before the step S30, also carry out following steps:
S20: browser obtains the data that comprise historical chat record from the message transfer server.When the user utilized the Web chat, the message between the user was transmitted by the message transfer server, and when pass-along message, this message is also preserved in the message transfer server.In general, for saving server resource, saving as of message is temporary, does not promptly forever preserve.Will be deleted after certain hour.Therefore present embodiment can provide the user every the regular hour chat record to be carried out once concentrating the scheme of preserving.
When the user needs the chat record of disposable certain time period of preservation, browser sends the request of obtaining historical chat record to the message transfer server, the message transfer server responds this request, and the data that will comprise historical chat record send to browser, checks for browser resolves, user.When browser initiated to preserve request, the data that will comprise current chat record and historical chat record sent to Web server, return to browser by Web server then.
Fig. 3 shows the system that obtains the Web chat record among the embodiment.This system comprises browser 10 and Web server 20.Web server 20 is used for response and preserves request, receives the data that comprise chat record, returns the data that comprise chat record; Browser 10 is used to initiate the request of preserving and sends the data that comprise chat record, receives the data that comprise chat record that Web server 20 returns.
In a preferred embodiment, browser 10 also is sent to Web server 20 with data with the form of list, and to specify at the return messages of this list object pointed be hidden object.In one embodiment, to handle the chat record file of generation be web page files to 20 pairs of described chat records of Web server.Web server 20 offers user's download with the chat record file as annex when returning the chat record file, and will act on the above-mentioned hidden object at the return messages of this list, thereby can the current chat page not impacted.
Fig. 4 illustrates the system that obtains the Web chat record among another embodiment.This system further comprises message transfer server 30.Message transfer server 30 is used for transfer and preserves user's chat messages, the request that the response browser obtains historical chat record.Utilize message transfer server 30 users can realize concentrated preservation to the chat record in a period of time.
Utilize above-mentioned method and system, return to the user after chat record can being handled by Web server and preserve, all browsers can be realized, thereby realized cross-platform preservation Web chat record simply.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (12)
1. a method of obtaining the Web chat record comprises the steps:
The preservation request that the web server response browser is initiated receives the data that comprise chat record that browser sends;
Described Web server returns to browser with the described data that comprise chat record.
2. the method for obtaining the Web chat record as claimed in claim 1, it is characterized in that, described chat record also comprises historical chat record, before the step of the preservation request that the web server response browser is initiated, also comprise step: browser obtains the data that comprise historical chat record from the message transfer server.
3. the method for obtaining the Web chat record as claimed in claim 1 or 2 is characterized in that, at described Web server the step that the described data that comprise chat record return to browser is specially:
The described data that comprise chat record are handled generation chat record file, described chat record file is returned to browser.
4. the method for obtaining the Web chat record as claimed in claim 1 or 2 is characterized in that, the step of the data that comprise chat record that Web server reception browser sends is specially:
Receive the described data that comprise chat record that browser sends with the list form;
Obtain title at the hidden object that return messages acted on of this list.
5. the method for obtaining the Web chat record as claimed in claim 2 is characterized in that, to the described data that comprise chat record handle generate the chat record file step specifically:
The described data that comprise chat record are handled the generation web page files.
6. the method for obtaining the Web chat record as claimed in claim 2 is characterized in that, the described step of returning the chat record file specifically:
Described chat record file is offered user's download as annex.
7. a system that obtains the Web chat record is characterized in that, comprising:
Web server is used for response and preserves request, receives the data that comprise chat record, and the described data that comprise chat record are returned to browser;
Browser is used for initiating the request of preserving and sending the data that comprise chat record to described Web server, receives the data that comprise chat record that described Web server returns.
8. the system that obtains the Web chat record as claimed in claim 7 is characterized in that, also comprises the message transfer server, is used for transfer and preserves user's chat messages, the request that the response browser obtains historical chat record data.
9. as claim 7 or the 8 described systems that obtain the Web chat record, it is characterized in that described Web server also is used for: the described data that comprise chat record are handled generating the chat record file, described chat record file is returned to browser.
10. as claim 7 or the 8 described systems that obtain the Web chat record, it is characterized in that, the data that described browser also will comprise chat record are sent to Web server with the form of list, and to specify at the return messages of this list object pointed be hidden object.
11., it is characterized in that the chat record file that described Web server is handled generation to described chat record is a web page files as claim 7 or the 8 described systems that obtain the Web chat record.
12. as claim 7 or the 8 described systems that obtain the Web chat record, it is characterized in that, when Web server returns described chat record file, described chat record file offered user's download as annex.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010102036.2A CN102130844B (en) | 2010-01-20 | 2010-01-20 | Method and system for acquiring Web chat logs |
PCT/CN2010/080146 WO2011088720A1 (en) | 2010-01-20 | 2010-12-22 | Method and system for obtaining web chat logs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010102036.2A CN102130844B (en) | 2010-01-20 | 2010-01-20 | Method and system for acquiring Web chat logs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102130844A true CN102130844A (en) | 2011-07-20 |
CN102130844B CN102130844B (en) | 2014-11-05 |
Family
ID=44268738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010102036.2A Active CN102130844B (en) | 2010-01-20 | 2010-01-20 | Method and system for acquiring Web chat logs |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102130844B (en) |
WO (1) | WO2011088720A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103473295A (en) * | 2013-09-04 | 2013-12-25 | 厦门亿联网络技术股份有限公司 | Method for reading set-quantity of chat records in XML (extensive markup language) files |
CN103580986A (en) * | 2012-07-30 | 2014-02-12 | 华为终端有限公司 | Real-time communication method, terminal equipment, real-time communication server and system |
CN104125135A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Instant messaging application chatting record management method and terminal thereof |
WO2014187288A1 (en) * | 2013-05-23 | 2014-11-27 | 华为终端有限公司 | Call log invoking method and device |
CN105260269A (en) * | 2015-11-02 | 2016-01-20 | 广东欧珀移动通信有限公司 | Backup method and device as well as terminal for chatting records |
CN107258072A (en) * | 2015-02-03 | 2017-10-17 | 连股份有限公司 | The conversation content management method and system and recording medium of chat software |
CN108600087A (en) * | 2018-04-12 | 2018-09-28 | 北京五八信息技术有限公司 | A kind of method, apparatus, electronic equipment and the storage medium of processing chat record |
CN115086264A (en) * | 2022-08-23 | 2022-09-20 | 北京普华恒信技术服务有限公司 | Data set generation method, equipment and computer system |
CN117150168A (en) * | 2023-10-09 | 2023-12-01 | 深圳麦风科技有限公司 | Chat record output method, device and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101163434B1 (en) * | 2003-05-16 | 2012-07-13 | 구글 잉크. | Networked chat and media sharing systems and methods |
CN1863058A (en) * | 2005-05-12 | 2006-11-15 | 华为技术有限公司 | Method for user to obtain historical record in chat chamber and chat chamber service system |
CN101034455A (en) * | 2006-03-06 | 2007-09-12 | 腾讯科技(深圳)有限公司 | Method and system for implementing online advertisement |
CN101119327A (en) * | 2006-08-04 | 2008-02-06 | 陆悦 | Instant chatting implementation system and method thereof |
CN101136873A (en) * | 2006-08-31 | 2008-03-05 | 腾讯科技(深圳)有限公司 | Method and system for transmitting advertisement to users on instant communication platform |
CN101072168B (en) * | 2007-06-22 | 2011-11-02 | 腾讯科技(深圳)有限公司 | Multi-language instant communication terminal and its system and method |
-
2010
- 2010-01-20 CN CN201010102036.2A patent/CN102130844B/en active Active
- 2010-12-22 WO PCT/CN2010/080146 patent/WO2011088720A1/en active Application Filing
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103580986A (en) * | 2012-07-30 | 2014-02-12 | 华为终端有限公司 | Real-time communication method, terminal equipment, real-time communication server and system |
US9854008B2 (en) | 2012-07-30 | 2017-12-26 | Huawei Device (Dongguan) Co., Ltd. | Real time communication method, terminal device, real time communication server and real time communication system |
CN103580986B (en) * | 2012-07-30 | 2016-12-21 | 华为终端有限公司 | A kind of real-time communication method, terminal unit, real-time communication server and system |
CN104125135B (en) * | 2013-04-28 | 2016-10-05 | 腾讯科技(深圳)有限公司 | The management method of a kind of instant messaging application chat record and terminal |
CN104125135A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Instant messaging application chatting record management method and terminal thereof |
WO2014187288A1 (en) * | 2013-05-23 | 2014-11-27 | 华为终端有限公司 | Call log invoking method and device |
CN104184771A (en) * | 2013-05-23 | 2014-12-03 | 华为终端有限公司 | Call record calling method and device |
CN104184771B (en) * | 2013-05-23 | 2017-12-15 | 华为终端有限公司 | Message registration call method and equipment |
CN103473295A (en) * | 2013-09-04 | 2013-12-25 | 厦门亿联网络技术股份有限公司 | Method for reading set-quantity of chat records in XML (extensive markup language) files |
CN107258072A (en) * | 2015-02-03 | 2017-10-17 | 连股份有限公司 | The conversation content management method and system and recording medium of chat software |
CN105260269A (en) * | 2015-11-02 | 2016-01-20 | 广东欧珀移动通信有限公司 | Backup method and device as well as terminal for chatting records |
CN108600087A (en) * | 2018-04-12 | 2018-09-28 | 北京五八信息技术有限公司 | A kind of method, apparatus, electronic equipment and the storage medium of processing chat record |
CN115086264A (en) * | 2022-08-23 | 2022-09-20 | 北京普华恒信技术服务有限公司 | Data set generation method, equipment and computer system |
CN115086264B (en) * | 2022-08-23 | 2022-12-13 | 北京普华恒信技术服务有限公司 | Data set generation method, equipment and computer system |
CN117150168A (en) * | 2023-10-09 | 2023-12-01 | 深圳麦风科技有限公司 | Chat record output method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2011088720A1 (en) | 2011-07-28 |
CN102130844B (en) | 2014-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102130844B (en) | Method and system for acquiring Web chat logs | |
JP6367501B1 (en) | Method, apparatus and smart watch for interaction between smart watch and we chat platform | |
CN103001860A (en) | Achieving system for converged communication Web instant messages | |
US20200213403A1 (en) | Information transmission method and device | |
WO2017128178A1 (en) | Information interaction method, client and device | |
WO2013097066A1 (en) | Method, device and system for realizing webpage browsing in remote desktop environment | |
CN103905497A (en) | Method, device and application platform for realizing login of third-party application service website | |
CN102655481A (en) | Webpape-based instant messaging chat content looking-up method and system | |
US20150127838A1 (en) | Page Operation Processing Method and Apparatus, and Terminal | |
WO2012000228A1 (en) | Method for group communication implemented on common web page | |
CN102137126B (en) | System and method for updating web data | |
EP2605460A1 (en) | Method, apparatus, and system for transferring file to user of instant message system | |
WO2017045190A1 (en) | Method, apparatus and device for instructing operations on terminal device | |
US20160359774A1 (en) | Instant messaging with non subscriber users | |
US20140254788A1 (en) | Communication between a mobile device and a call center | |
CN106341453A (en) | High-speed virtual desktop agent building method and high-speed virtual desktop agent building system based on HTML5 | |
WO2013037249A1 (en) | Method, system and device for implementing reposting to microblog | |
CN102236676B (en) | Method and device for acquiring picture information by session window | |
US20130080539A1 (en) | Systems and methods for performing quick link communications | |
WO2013104246A1 (en) | Method, system, and device for switching between network applications, and computer storage medium | |
CN102739680A (en) | Session life prolonging device and method | |
CN101902518A (en) | Method and system for simplifying mobile telephone registration of website account | |
CN104202432B (en) | Remote web management system and management method | |
CN105024907A (en) | IM information pushing method and system, server and platform | |
WO2011088718A1 (en) | Method, apparatus and system for updating session window in instant messaging software |
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 |