CN102130844B - Method and system for acquiring Web chat logs - Google Patents

Method and system for acquiring Web chat logs Download PDF

Info

Publication number
CN102130844B
CN102130844B CN 201010102036 CN201010102036A CN102130844B CN 102130844 B CN102130844 B CN 102130844B CN 201010102036 CN201010102036 CN 201010102036 CN 201010102036 A CN201010102036 A CN 201010102036A CN 102130844 B CN102130844 B CN 102130844B
Authority
CN
China
Prior art keywords
chat
browser
web
data
server
Prior art date
Application number
CN 201010102036
Other languages
Chinese (zh)
Other versions
CN102130844A (en
Inventor
杨谦
于涛
塞杰斯·泰尔劳
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN 201010102036 priority Critical patent/CN102130844B/en
Publication of CN102130844A publication Critical patent/CN102130844A/en
Application granted granted Critical
Publication of CN102130844B publication Critical patent/CN102130844B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages
    • H04L51/16Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages including conversation history, e.g. threads

Abstract

一种获取Web聊天记录的方法,属于Web即时通讯领域。 A method of acquiring Web chats and belongs to the field of instant messaging Web. 该方法包括如下步骤:Web服务器响应浏览器发起的保存请求,接收浏览器发出的包含聊天记录的数据;所述Web服务器将所述包含聊天记录的数据返回给浏览器。 The method comprises the steps of: Web Server in response to a save request initiated by the browser, receiving data comprising a chat sent by the browser; the Web server, the data containing the chat returned to the browser. 此外还涉及一种获取Web聊天记录的系统,包括实现上述方法的Web服务器和浏览器。 Web acquiring further relates to a chat system, comprising a server and a Web browser to implement the above method. 利用Web服务器与浏览器配合的系统,采用将聊天记录通过Web服务器中转然后返回给浏览器的方法,所有的浏览器都可以简单实现获取Web聊天记录,从而具有很好的跨平台性。 Use Web server and browser with the system, using the chat transit through the Web server then returns the method to the browser, all the browser can simply achieve access to the Web chats, and thus has a good cross-platform.

Description

保存Web聊天记录的方法及系统 Save Web chats method and system

【技术领域】 TECHNICAL FIELD

[0001] 本发明涉及Web即时通讯,尤其是涉及一种保存Web聊天记录的方法及系统。 [0001] The present invention relates to Web chat, particularly relates to a method and system for Web chat record keeping. 【背景技术】 【Background technique】

[0002] 传统的即时通讯一般是采用在客户端登录的方法来实现的,随着即时通讯客户端功能的不断扩充与完善,客户端变得越来越大,给下载及安装带来诸多不便。 [0002] The traditional instant messaging is generally used in the method of the client logs to achieve, with the continuous expansion of the instant messaging client functionality and improvement, the client becomes more and more, to download and install the inconvenience .

[0003] 为此,产生了基于Web的即时通讯方法。 [0003] To this end, it produced a Web-based instant messaging. 采用这种方式聊天,不需要下载安装客户端,直接打开网页即可聊天。 In this way chat, you do not need to download and install the client can directly open the chat page.

[0004] 上网浏览网页就需要使用浏览器,最为常用的浏览器一般是微软的IE,或是以IE为内核的诸多浏览器。 [0004] surf the Web need to use the browser, the most popular browser is Microsoft's IE general, or IE as the core of many browsers. 随着技术的发展和不同用户的需求,浏览器也呈多样化的趋势,出现了其他内核的浏览器,如Firefox, Safari, Chrome, Opera等。 With the development of technology and the needs of different users, the browser also showed a trend of diversification, there are other core browser, such as Firefox, Safari, Chrome, Opera and so on.

[0005] 采用IE浏览器进行Web聊天时,若需要保存聊天记录。 [0005] When using IE browser Web chat, if desired record. 可直接调用windows方法,如window, document的execCommand方法,将聊天记录另存为html文件,备份到本地磁盘中,留待以后查看。 The method can be called directly windows, such as window, execCommand methods of document, chat history saved as html files, backup to a local disk, until later viewing.

[0006] 而其他内核的浏览器则无法使用这种方法,给Web聊天记录的保存带来了不便,因此目前Web聊天中聊天记录保存的跨平台性较差。 [0006] and other core browser can not use this method to save Web chats inconvenience, so the current Web chat chats saved cross-platform poor.

【发明内容】 [SUMMARY]

[0007] 基于此,有必要针对传统的Web聊天在保存聊天记录时跨平台性差的问题,提供一种可使多种不同内核的浏览器都能够方便保存Web聊天记录的方法。 [0007] Based on this, it is necessary for the traditional cross-platform Web chat problem of poor when you save chat history, can provide a variety of different browser kernel method can easily save Web chats.

[0008] 一种保存Web聊天记录的方法,包括如下步骤:Web服务器响应浏览器发起的保存请求,接收浏览器发出的包含聊天记录的数据;所述Web服务器将所述包含聊天记录的数据返回给浏览器。 [0008] A method of preserving Web chat, comprising the steps of: Web Server in response to a save request initiated by the browser, receiving data comprising a chat sent by the browser; the Web server, the chat data comprises return to the browser.

[0009] 优选地,所述聊天记录还包括历史聊天记录,在Web服务器响应浏览器发起的保存请求的步骤之前,还包括步骤:浏览器从消息中转服务器获取包含历史聊天记录的数据。 Before [0009] Preferably, the chat chat history recording further comprises the step of storing request initiated by the browser in response to the Web server, further comprising the step of: acquiring data containing the browser history chat message from the relay server.

[0010] 优选地,在所述Web服务器将所述包含聊天记录的数据返回给浏览器的步骤具体为:对所述包含聊天记录的数据进行处理生成聊天记录文件,将所述聊天记录文件返回给浏览器。 Step Data [0010] Preferably, in the Web server containing the chat returned to the browser specifically is: the data comprises a recording processing for generating chat chat log file, the log file returns chat to the browser.

[0011] 优选地,Web服务器接收浏览器发出的包含聊天记录的数据的步骤具体为:接收浏览器以表单形式发送的所述包含聊天记录的数据;获取针对该表单的返回消息所作用的隐藏对象的名称。 [0011] Preferably, the step of recording data comprises a Web chat server receiver sent by the browser specifically to: receive a browser sends a form to the form of the chat history data comprising; obtaining hidden acts against a return message of the form name of the object.

[0012] 优选地,对所述聊天记录的数据进行处理生成聊天记录文件的步骤具体是:将所述聊天记录的数据进行处理生成网页文件。 [0012] Preferably, the data processing step of generating a chat chat log file is specifically: the data of the chat page file generation process is performed.

[0013] 优选地,所述返回聊天记录文件的步骤具体是:将所述聊天记录文件作为附件提供给用户下载。 [0013] Preferably, the step returns chat log files in particular: the chat log file as an attachment to the user to download.

[0014] 此外,还提供一种保存Web聊天记录的系统。 [0014] Further, there is provided a storage system Web chats.

[0015] 一种保存Web聊天记录的系统,包括:Web服务器,用于响应保存请求,接收包含聊天记录的数据,将所述包含聊天记录的数据返回给浏览器;浏览器,用于发起保存请求并发送包含聊天记录的数据,接收Web服务器返回的包含聊天记录的数据。 [0015] A Web system to save the chat history, including: Web Server, in response to a save request, receiving a chat data records, the data records containing the chat returned to the browser; browser, save for initiating and transmits the data request containing the chat, the chat record containing the received data returned by a Web server.

[0016] 优选地,还包括消息中转服务器,用于中转并保存用户的聊天消息,响应浏览器获取历史聊天记录数据的请求。 [0016] Preferably, the message further comprising a relay server, and save transit for user's chat message, the browser in response to the acquisition request chat history data.

[0017] 优选地,所述Web服务器还用于:对所述包含聊天记录的数据进行处理生成聊天记录文件,将所述聊天记录文件返回给浏览器。 [0017] Preferably, the Web server is further configured to: the data comprises a recording processing for generating chat chat log file, the chat log file returned to the browser.

[0018] 优选地,所述浏览器还将包含聊天记录的数据以表单的形式发送至Web服务器,并指定针对该表单的返回消息所指向的对象为隐藏对象。 Data [0018] Preferably, the browser will also include the transmission in the form of chat form to a Web server, and designated as the object for the object hidden form the return message is directed.

[0019] 优选地,所述Web服务器对所述聊天记录进行处理生成的聊天记录文件为网页文件。 [0019] Preferably, the Web server processes the generated chat chat log file page file.

[0020] 优选地,Web服务器返回所述聊天记录文件时,将所述聊天记录文件作为附件提供给用户下载。 [0020] Preferably, the Web server returns the chat log file, the chat log file as an attachment to the user to download.

[0021] 优选地,所述web服务器返回所述聊天记录文件时,将针对表单的返回消息作用于所述隐藏对象。 [0021] Preferably, the web server returns the chat log file, forms a return message for acting on the object is hidden.

[0022] 本发明的有益效果在于: [0022] Advantageous effects of the present invention:

[0023] 利用Web服务器与浏览器配合的系统,采用将聊天记录通过Web服务器中转然后返回给浏览器的方法,所有的浏览器都可以简单实现获取Web聊天记录,从而具有很好的跨平台性。 [0023] using a Web browser with the server system using the relay chat method then returns to the browser via the Web server, all browsers can simply achieve access to Web chat, to have good cross-platform .

【附图说明】 BRIEF DESCRIPTION

[0024] 图1为一实施例的获取Web聊天记录的方法的流程图; [0024] FIG. 1 is a flowchart of a method for obtaining a Web chat embodiment;

[0025] 图2为又一实施例的获取Web聊天记录的方法的流程图; [0025] FIG 2 is a flowchart of the method for obtaining Web chat still another embodiment;

[0026] 图3为一实施例的获取Web聊天记录的系统的结构示意图; [0026] FIG. 3 is a schematic view of the structure of a Web chat system acquires an embodiment;

[0027] 图4为另一实施例的获取Web聊天记录的系统的结构示意图。 [0027] FIG. 4 is a schematic structure acquisition Web chat system according to another embodiment.

【具体实施方式】 【Detailed ways】

[0028] 以下结合附图进行进一步说明。 [0028] further described below in conjunction with the accompanying drawings.

[0029] 如图1所示,一实施例中,采用如下步骤将获取Web聊天记录: [0029] As shown in FIG 1, one embodiment, the step of using the acquired Web chat:

[0030] SlO:ffeb服务器响应浏览器发起的保存请求,接收浏览器发出的包含聊天记录的数据。 [0030] SlO: ffeb server in response to a save request initiated by the browser, receiving data comprising a chat sent by the browser.

[0031] 在利用Web聊天时,如采用Web QQ聊天,Web页面内会有一个聊天窗口。 [0031] When using the Web chat, such as the use QQ Web chat, a chat window will be within a Web page. 聊天窗口一般包括消息输入栏、消息显示栏、聊天对象的信息显示以及一些常用命令的快捷操作按钮(如发送消息、表情以及图片等),这些快捷操作按钮中还包括用于发出保存聊天记录命令的按钮,如显示为“导出聊天记录”的按钮。 Chat window typically comprises a message input field, the message display column, and the information object displayed chat shortcut buttons (such as sending messages, pictures and expressions, etc.) some of the common commands, which further comprises a shortcut button for issuing a command to save the chat history button, such as "chat export" button display. 当用户按下“导出聊天记录”的按钮时,就生成了一个保存请求,浏览器将该保存请求发送给Web服务器,同时将暂时保存的消息(聊天记录)发送给Web服务器。 When the user presses the "Export chat record" button, generates a storage request, the browser sends a storage request to the Web server, while temporarily saved message (chat) to the Web server.

[0032] 本实施例中,浏览器以表单的形式发送包含聊天记录的数据。 [0032] In this embodiment, the browser sends the data contained in the form of chats form. 表单是Web通信中各种浏览器都支持的一种较为常见的网页组件,用户注册、网上购物、申请提交、发表评论等功能都是基于表单。 Web traffic is a form of various browsers support a more common web page components, user registration, online shopping, filing, comments and other features are based on the form.

[0033] 浏览器提交表单后,Web服务器一般都有针对该表单的返回消息,根据设置的不同,返回消息会显示在不同的页面。 After the [0033] browser submits the form, Web servers typically have a message for return of the form, depending on the settings, the return message will be displayed on different pages. 发送表单时,具体可采用如下所示的代码: When sending a form, the specific code is employed as shown below:

[0034] 〈form method=〃post〃act1n=〃/save_chatlog.php〃target=〃chatlog〃> [0034] <form method = 〃post〃act1n = 〃 / save_chatlog.php〃target = 〃chatlog〃>

[0035] 〈input type=//hidden//value=//chatlog//name=//chatlog/V> [0035] <input type = // hidden // value = // chatlog // name = // chatlog / V>

[0036] 〈a href=〃#〃> 保存记录</a> [0036] <a href=〃#〃> record-keeping </a>

[0037] 〈/form〉 [0037] </ form>

[0038]其中: [0038] wherein:

[0039] method指定浏览器与Web服务器通信的方式,根据method的值,一般有两种方式:若method的值为“get”,则表示浏览器要向Web服务器主动获取数据;若method的值为“post”,则表示浏览器要向Web服务器发送数据。 [0039] Browser method targeting Web server in communication with, depending on the value of the method, there are two ways: if the method is "get", it indicates that the browser Web server To actively acquire data; if the value of the method to "post", said the Web browser to send data server. 本实施例中要向Web服务器发送表单,因而采取“post”的方式。 To send a Web server in this embodiment form, so to take "post" manner.

[0040] act1n指定表单在Web服务器上的处理页面。 [0040] act1n specified form processing page on the Web server.

[0041] target指定Web服务器的返回消息处理的对象。 [0041] target designated Web server returns the message processing object. 本实施例中,target的值为“chatlog”。 Embodiment, target value "chatlog" of the present embodiment. “chatlog”是在聊天页面的一个隐藏的窗体(iframe)的id和name值,使得target在引用“chatlog”时,可以使返回消息指向该iframe。 "Chatlog" is hidden in a chat form page (iframe) id and name values, such that when the reference target "chatlog", can return a message directed to the iframe. 这样可以使得Web服务器的返回消息作用在该iframe上面,不会对现有的聊天页面造成影响。 This return message that the Web server role in the iframe above, will not affect the existing chat page.

[0042] 浏览器发送完聊天记录后,Web服务器响应所述保存请求,接收所述数据,进入指定的处理页面。 [0042] After completion of sending chat browser, Web server, in response to the storage request, the data is received, the process enters the specified page.

[0043] S30:所述Web服务器将所述包含聊天记录的数据返回给浏览器。 [0043] S30: the data comprises a Web server, the chat is returned to the browser. 即采用经过Web服务器中转后再发送给浏览器的方式获取聊天记录,将原本保存在浏览器变量中,即内存中的聊天记录,经过Web服务器中转再回传给浏览器,即可方便地获得聊天记录。 After the Web server which uses a transit way and then get sent to the browser chats, originally saved in the browser variable, namely chats memory, through the Web server to return a transit pass browser, you can easily access chat record.

[0044] 回传的数据可以被浏览器解析,将聊天记录展示在浏览器的页面内,让用户查看。 [0044] return data can be parsed by the browser, the chat show in the browser page, allowing users to view. 继而通过其他方法进行保存,如另存网页、屏幕截取等。 Then preserved by other means, such as Web pages, screen capture and the like.

[0045] 本实施例中,回传的数据不被解析,而是作为附件提供给浏览器下载。 [0045] In this embodiment, the return data is not resolved, but rather as an attachment to the browser downloads.

[0046] 在Web服务器回传数据时,浏览器弹出提示用户保存该数据的提示框。 [0046] when the Web server returns data, the browser pop-up prompts the user to save the data in the prompt box. 可采用如下代码实现上述方案: Program code to achieve the above may be employed as follows:

[0047] 在返回聊天记录文件的时候在HTTP协议头上添加一行:Content_Disposit1n:attachment ;filename=〃WebQQ_chatlog_filename.html即该聊天记录文件以附件的形式提供给用户下载,文件以WebQQ_chatlog_filename.html的文件名在弹出的下载提示框中呈现给用户,实际操作中用户可根据情况将文件名进行更改。 [0047] In the chat log file returns the HTTP protocol when adding a line head: Content_Disposit1n: attachment; filename = 〃WebQQ_chatlog_filename.html i.e., the chat record file as an attachment provided to the user to download, the file name of the file to WebQQ_chatlog_filename.html in the dialog box prompts to download to the user, the user can practice the file name changes according to the situation.

[0048] 在另一优选的实施例中,图2示出了该实施例中获取Web聊天记录的方法的流程,进一步包括如下步骤S20:对所述包含聊天记录的数据进行处理生成聊天记录文件,将所述聊天记录文件返回给浏览器。 [0048] In another preferred embodiment, FIG 2 shows a flowchart of a method embodiment acquires the Web chat embodiment, further comprising the Step S20: the data comprises a recording processing for generating chat chat log files , the chat log file returned to the browser. 在指定的处理页面中,如上述的/save_chatlog.php,将表单中包含聊天记录的数据经过处理后生成聊天记录文件,该聊天记录文件理论上经过Web服务器处理后可生成为任意计算机可读的格式的文件,如文档、图片或者上述文件的压缩文件等。 In the process specified page, as described above /save_chatlog.php, the form data included in the chat history after treatment chat log files generated, the chat log files after the Web server processing pass in theory can be any computer-readable green format files, such as documents, pictures or compressed files of these documents. 由于采用的是Web聊天,聊天记录的内容一般都是以html格式暂存在浏览器的变量中,因此为了方便通信,由Web服务器处理后生成的聊天记录文件为网页文件类型的html文件。 Because it is used in Web chat, the chat contents are generally recorded in the temporary variable in html format browser, so in order to facilitate communications, generated by the Web server processes the chat log files for the Web page file html file type. 因此该html文件可返回给浏览器解析或者以附件的形式提供给浏览器下载。 Therefore, the html files can be returned to the browser parses or provided as an attachment to the browser download.

[0049] 对于仅保存当前聊天记录的情形,上述实施例中,Web服务器将浏览器的发送的数据进行中转即可实现。 [0049] For the case where only the current save the chat history, the above-described embodiment, Web server, the browser transmits the data transfer is performed can be realized. 然而对于要保存历史聊天的情形,则还需要获取保存在消息中转服务器中的历史聊天记录。 However, for the case you want to save the chat history, you still need to get the chat history saved in the message relay server. 即步骤S30之前,还进行如下步骤: I.e., before step S30, the following further steps:

[0050] 浏览器从消息中转服务器获取包含历史聊天记录的数据。 [0050] The browser acquires data including chat history from the message transfer server. 用户利用Web聊天时,用户之间的消息是通过消息中转服务器来传递的,在传递消息时,该消息也保存消息中转服务器中。 When the user utilizes Web chat, messaging between users via the relay server to deliver the message, when delivery message, which message is also stored in the relay server. 一般来说,为节约服务器资源,消息的保存为暂存,即不永久保存。 In general, in order to save server resources, save the message for the staging, that is not stored permanently. 在一定时间之后就会被删除。 It will be deleted after a certain time. 因此本实施例可提供用户每隔一定的时间对聊天记录进行一次集中保存的方案。 Therefore, the present embodiment can provide a user chats centrally stored program at regular intervals.

[0051] 当用户需要一次性保存某个时间段的聊天记录时,浏览器向消息中转服务器发送获取历史聊天记录的请求,消息中转服务器响应该请求,将包含历史聊天记录的数据发送给浏览器,供浏览器解析、用户查看。 Data [0051] When a user needs to save the chat history disposable certain period of time, the browser sends a request to the chat history acquisition message relay server, the server responds to the transfer request message, including the chat history is sent to the browser for the browser parses the user to view. 浏览器发起保存请求的同时,将包含当前聊天记录和历史聊天记录的数据发送到Web服务器,然后由Web服务器返回给浏览器。 Browser launched at the same time save request, send the data will contain the current chats and chat history to a Web server, and then returned by the Web server to the browser.

[0052] 图3示出了一个实施例中的获取Web聊天记录的系统。 [0052] FIG. 3 shows the acquired Web chat system according to one embodiment of the embodiment. 该系统包括浏览器10和Web服务器20。 The system includes a browser 10 and the Web server 20. Web服务器20用于响应保存请求,接收包含聊天记录的数据,返回包含聊天记录的数据;浏览器10用于发起保存请求并发送包含聊天记录的数据,接收Web服务器20返回的包含聊天记录的数据。 Web server 20 in response to a save request, the received data comprising the chat, the chat record comprising data return; browser 10 for initiating and transmitting a data storage request contains the chat, the chat record containing the received data is returned from the Web server 20 .

[0053] 在优选的实施例中,浏览器10还将数据以表单的形式发送至Web服务器20,并指定针对该表单的返回消息所指向的对象为隐藏对象。 [0053] In a preferred embodiment, the browser 10 also transmits data in the form form to a Web server 20, and designated as the object for the object hidden form the return message is directed. 在一个实施例中,Web服务器20对所述聊天记录进行处理生成的聊天记录文件为网页文件。 In one embodiment, Web servers 20 pairs of the processing for generating chat chat log file for the web page files. Web服务器20在返回聊天记录文件时,将聊天记录文件作为附件提供给用户下载,并且将针对该表单的返回消息作用于上述的隐藏对象上,从而不会对当前的聊天页面造成影响。 20 Web server log files when you return to chat, chat history file as an attachment to the user to download, and on the aforementioned hidden objects, which will not affect the current chat page for the role of the return message form.

[0054] 图4示出另一实施例中的获取Web聊天记录的系统。 [0054] FIG. 4 shows the acquired Web chat system in another embodiment of FIG. 该系统进一步包括消息中转服务器30。 The system 30 further includes a message transfer server. 消息中转服务器30用于中转并保存用户的聊天消息,响应浏览器获取历史聊天记录的请求。 Message transfer server 30 to transfer and store the user's chat message, the browser in response to the acquisition request of the chat history. 利用消息中转服务器30用户可以实现对一段时间内的聊天记录的集中保存。 Message transfer server 30 by using the user can achieve centralized save chats over a period of time.

[0055] 利用上述的方法和系统,可以将聊天记录通过Web服务器进行处理后返回给用户保存,使所有的浏览器都可以实现,从而简单地实现了跨平台保存Web聊天记录。 [0055] With the above method and system may be processed by the chat is returned to the user to save the Web server, so that all browsers can be achieved, so simple to implement cross-platform saves Web chats.

[0056] 以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。 [0056] Expression of the above-described embodiments are only several embodiments of the present invention, and detailed description thereof is more specific, but can not therefore be understood as limiting the scope of the present invention. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, without departing from the spirit of the present invention, can make various changes and modifications, which fall within the protection scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (4)

1.一种保存Web聊天记录的方法,包括如下步骤: 浏览器向消息中转服务器发送获取历史聊天记录的请求,消息中转服务器响应该请求,将包含历史聊天记录的数据发送给浏览器; Web服务器响应所述浏览器发起的保存请求,接收所述浏览器发出的包含聊天记录的数据,所述聊天记录包含当前聊天记录和历史聊天记录; 经过所述Web服务器中转后,将所述聊天记录回传给所述浏览器保存,对所述包含聊天记录的数据进行处理生成聊天记录文件,将所述聊天记录文件返回给所述浏览器保存;所述聊天记录文件经过Web服务器处理后生成为计算机可读的格式的文件; Web服务器接收浏览器发出的包含聊天记录的数据的步骤具体为: 接收浏览器以表单形式发送的所述包含聊天记录的数据; 获取针对该表单的返回消息所作用的隐藏对象的名称; 所述返回聊天记录文件 1. A method of preserving Web chat, comprising the steps of: obtaining browser sends a request message to the chat history relay server, the server responds to the transfer request message, including the chat history data is transmitted to the browser; Web server in response to the storage request initiated by the browser, the data receiver comprising the chat sent by the browser, the record contains the current chat chat and chat history; Web server after the transfer, the chat back passed to the browser save the data in the record containing the chat chat log file generation processing, the chat file back to the web browser stored; chat log files through the Web server computer may be processed epigenetic reading file format; data comprising the step of recording a Web chat server receiver sent by the browser specifically to: receive a browser sends a form to the form of the chat history data comprising; obtaining hidden acts against a return message of the form name of the object; returns the chat log files 步骤具体是: 将所述聊天记录文件作为附件提供给用户下载。 Step Specifically: the chat log file as an attachment to the user to download.
2.如权利要求1所述的保存Web聊天记录的方法,其特征在于,对所述包含聊天记录的数据进行处理生成聊天记录文件的步骤具体是: 将所述包含聊天记录的数据进行处理生成网页文件。 2. The method of saving the Web chat claimed in claim 1, wherein the step of generating the processing of the chat log file contains the data in the specific chat record is: the data comprises a recording processing for generating chat web page files.
3.一种保存Web聊天记录的系统,其特征在于,包括: 消息中转服务器,用于中转并保存用户的聊天消息,响应浏览器获取历史聊天记录数据的请求,将包含历史聊天记录的数据发送给浏览器; Web服务器,用于响应保存请求,接收包含聊天记录的数据,将所述聊天记录中转后回传给所述浏览器保存,所述聊天记录包含当前聊天记录和历史聊天记录; 浏览器,用于向所述Web服务器发起保存请求并发送包含聊天记录的数据,接收所述Web服务器返回的包含聊天记录的数据; 所述Web服务器还用于:对所述包含聊天记录的数据进行处理生成聊天记录文件,将所述聊天记录文件返回给浏览器; 所述浏览器还将包含聊天记录的数据以表单的形式发送至Web服务器,并指定针对该表单的返回消息所指向的对象为隐藏对象; Web服务器返回所述聊天记录文件时,将所述聊天 A Web system to save the chat history, characterized by comprising: message relay server, and save transit for user's chat message, the browser in response to the acquisition request of the chat history data, including data transmission history chats to the browser; the Web server in response to a save request, receiving a chat history data, the relay chat is saved back to the browser, said record comprising the current chat chat and chat history; Browse is configured to initiate the Web server and sends a request to save the chat history data comprises receiving data comprising a chat server returns the Web; the Web server is further configured to: data recorded by the chat comprising chat log file generating process, returning the chat log file to the browser; browser will also include the chat data to the Web server transmits the form to form, for the object and specify the form of the return message is directed to hidden object; the Web server returns the chat log file, the chat 记录文件作为附件提供给用户下载。 Record file as an attachment to users for download.
4.如权利要求3所述的保存Web聊天记录的系统,其特征在于,所述Web服务器对所述聊天记录进行处理生成的聊天记录文件为网页文件。 4. Save the Web according to claim 3 recorded chat system, wherein the Web server processes the generated chat chat log file page file.
CN 201010102036 2010-01-20 2010-01-20 Method and system for acquiring Web chat logs CN102130844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010102036 CN102130844B (en) 2010-01-20 2010-01-20 Method and system for acquiring Web chat logs

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201010102036 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

Publications (2)

Publication Number Publication Date
CN102130844A CN102130844A (en) 2011-07-20
CN102130844B true CN102130844B (en) 2014-11-05

Family

ID=44268738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010102036 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580986B (en) 2012-07-30 2016-12-21 华为终端有限公司 A real-time communication method, terminal device and system for real-time communication server
CN104125135B (en) * 2013-04-28 2016-10-05 腾讯科技(深圳)有限公司 The method of managing an instant messaging application and a terminal chats
CN104184771B (en) * 2013-05-23 2017-12-15 华为终端有限公司 Call recording call methods and equipment
CN103473295A (en) * 2013-09-04 2013-12-25 厦门亿联网络技术股份有限公司 Method for reading set-quantity of chat records in XML (extensive markup language) files
CN105260269A (en) * 2015-11-02 2016-01-20 广东欧珀移动通信有限公司 Backup method and device as well as terminal for chatting records

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997980B (en) * 2003-05-16 2011-07-06 谷歌公司 Networked chat and media sharing systems and methods
CN101072168B (en) * 2007-06-22 2011-11-02 腾讯科技(深圳)有限公司 Multi-language instant communication terminal and its system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
WO2011088720A1 (en) 2011-07-28
CN102130844A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
EP2183881B1 (en) Cross-domain communication
CN102474432B (en) Social Network Virtual Private Network
US8370732B2 (en) Peer-to-portal media broadcasting
US8407290B2 (en) Dynamic data sharing using a collaboration-enabled web browser
US20120096368A1 (en) Cloud-based virtual clipboard
KR100972306B1 (en) Application generator
JP2012514812A (en) Synchronization of presentation states among multiple applications
US20080244702A1 (en) Method, Apparatus, System, Medium, and Signals for Intercepting a Multiple-Party Communication
US20070143796A1 (en) Methods, systems, and computer program products for selectively facilitating internet content and/or alerts on a television crawl screen, closed caption and/or picture-in-picture area
CN101288048A (en) Content syndication platform
CN100591078C (en) A website buffering method and device
CN101754106A (en) Method and system for recommending contents between mobile phone users
US9342516B2 (en) Media presentation playback annotation
EP2736281A1 (en) Method and system for information transfer, and browser of mobile terminal
WO2006081143A3 (en) Technique for modifying presentation of information displayed to end users of a computer system
CN102902761A (en) Cross-terminal cloud browse method and system
CN102006274A (en) Seamless application session reconstruction between devices
CN102710534B (en) Application of a cross-network communication method and apparatus
US20080243994A1 (en) Method, Apparatus, System, and Medium for Supporting Multiple-Party Communications
CN102185923A (en) Webpage browsing method for mobile communication equipment terminal
CN1867142B (en) Method and system for mobile terminal device obtaining computer information
CN102300163A (en) Information delivery method, system and mobile terminal
US7818458B2 (en) Clipboard for application sharing
CN105406975B (en) One kind of chat rooms and virtual gifts presented effects triggered method and system
US8250478B2 (en) State persistence and background initialization for post-back web applications

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model