CN103905290B - A kind of data interactive method, device and client - Google Patents

A kind of data interactive method, device and client Download PDF

Info

Publication number
CN103905290B
CN103905290B CN201210578324.4A CN201210578324A CN103905290B CN 103905290 B CN103905290 B CN 103905290B CN 201210578324 A CN201210578324 A CN 201210578324A CN 103905290 B CN103905290 B CN 103905290B
Authority
CN
China
Prior art keywords
array
data
group
write
webpage
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
CN201210578324.4A
Other languages
Chinese (zh)
Other versions
CN103905290A (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
Tencent Cloud Computing Beijing 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 CN201210578324.4A priority Critical patent/CN103905290B/en
Publication of CN103905290A publication Critical patent/CN103905290A/en
Application granted granted Critical
Publication of CN103905290B publication Critical patent/CN103905290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A kind of data interactive method of offer of the embodiment of the present invention, device and client, method therein may include:After IM applications log in, if detecting the write operation of user in the current web page of the embedded web page windows of IM applications, the data of user's write-in are obtained;According to the corresponding group identification of the current web page, the array of the webpage interaction data for storing the group is obtained;The data of said write are added in the array.The present invention can realize that the data interaction operation of the webpage in the embedded web page windows applied to IM, streamline operation promote data interaction efficiency in IM applications.

Description

A kind of data interactive method, device and client
Technical field
The present invention relates to Internet technical fields, and in particular to IM(Instant Messenger, instant messaging)Technology is led A kind of domain more particularly to data interactive method, device and client.
Background technology
With the development of IM technologies, IM applications are increasingly at indispensable communication tool in for people's lives.IM applications are not It is only capable of providing chat feature, but also the bearing function of various businesses function and ingress for service is provided, such as:IM application carryings web(Network)Function shows web business webpages in the embedded web page windows of IM applications.The web functions of existing IM applications Realization is mainly:Webpage communication interface is embedded in IM applications, IM, which is applied, to be drawn by the embedded webpage communication interface from server Business web data is taken, the business web data pulled is shown in the embedded web page windows of IM applications;However, existing IM The web functions of application are very limited, and user is only capable of browsing web data in the embedded web page windows that IM is applied, if necessary into Row data interactive operation, such as:It makes comments in the business webpage shown in the embedded web page windows of IM applications, alternatively, on In the business webpage that blit piece is shown to the embedded web page windows that IM is applied, then need to jump to browser application from IM applications, Website where opening the business webpage in browser application carries out data interaction operation, and the operation of this interactive process is too numerous It is trivial, reduce the efficiency of data interaction.
Invention content
A kind of data interactive method of offer of the embodiment of the present invention, device and client can be realized in IM applications and be answered IM The data interaction of webpage in embedded web page windows operates, streamline operation, promotes data interaction efficiency.
First aspect present invention provides a kind of data interactive method, it may include:
After IM applications log in, if detecting writing for user in the current web page of the embedded web page windows of IM applications Operation obtains the data of user's write-in;
According to the corresponding group identification of the current web page, the number of the webpage interaction data for storing the group is obtained Group;
The data of said write are added in the array.
Second aspect of the present invention provides a kind of data interaction device, it may include:
Data acquisition module is write, after in IM using logging in, if working as in the IM embedded web page windows applied The write operation that user is detected in preceding webpage obtains the data of user's write-in;
Array acquisition module, for according to the corresponding group identification of the current web page, obtaining for storing the group Webpage interaction data array;
Processing module is write, for the data of said write to be added in the array.
Third aspect present invention provides a kind of client, including IM applications, further includes the described of above-mentioned second aspect offer Data interaction device.
Implement the embodiment of the present invention, has the advantages that:
The embodiment of the present invention increases the data interaction function of IM applications, current when the embedded web page windows applied in IM When detecting the write operation of user in webpage, the data of user's write-in are obtained, and obtains and is corresponded to for storing current web page Group webpage interaction data array, using the data of the storage of array said write, then IM application in realize Data exchange process is redirected without what is applied, simplifies the operating process of data interaction, improves data interaction efficiency.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of data interactive method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another data interactive method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram for data interaction device that present invention implementation provides;
Fig. 4 is the structural schematic diagram of the embodiment of array acquisition module shown in Fig. 3;
Fig. 5 is the structural schematic diagram of the embodiment shown in Fig. 3 for writing processing module;
Fig. 6 is the structural schematic diagram of another data interaction device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In the embodiment of the present invention, client can include but is not limited to:PC(Personal Computer, individual calculus Machine), tablet computer, the terminal devices such as laptop.Preferably, IM applications are installed in the client of the embodiment of the present invention.
Below in conjunction with attached drawing 1- attached drawings 2, describe in detail to data interactive method provided in an embodiment of the present invention.
Fig. 1 is referred to, is a kind of flow chart of data interactive method provided in an embodiment of the present invention;This method may include as Lower step S101- steps S103.
After S101, IM application log in, if detecting use in the current web page of the embedded web page windows of IM applications The write operation at family obtains the data of user's write-in;
IM application log in after, can IM apply embedded web page windows in displayed web page, specifically, user open IM application Some group chat window when, IM applications are then from the corresponding web data of the server pull group, and in embedded webpage The corresponding webpage of the group is shown in window.User not only may browse through web data, the embedded webpage that can also be applied in IM Data interaction operation is executed in the webpage that window is shown, such as:Make comments, upload audio-video document, listen song, sectional drawing etc. Deng, the interaction that realization is applied based on IM, the social interaction server that experience IM applications provide.Wherein, write operation includes but not limited to:It delivers Comment on, deliver message, uploading pictures, upload audio-video document etc., this step then obtains the data of user's write-in.
S102 obtains the webpage for storing the group and interacts number according to the corresponding group identification of the current web page According to array;
Wherein, for group identification for a group in unique mark IM applications, which can be the account of group Number, title or keyword, etc..Wherein, the webpage interaction data of group is:Member Users in group apply embedded in IM The interaction data that interactive operation generates is executed in the webpage of window displaying.The webpage interaction data of group can be used array form into Row stores, in this step, according to the current web page of the embedded window displaying of IM applications, it may be determined that the corresponding group of current web page; According to the group identification of the group, the array of the webpage interaction data for storing the group can be obtained.
The data of said write are added in the array by S103.
Wherein, the data of said write are that the user executes in the current web page for the embedded window displaying that IM is applied The webpage interaction data that write operation generates.In this step, the data of said write are as the corresponding group of the current web page Webpage interaction data is added into the array of the webpage interaction data for storing the group and is preserved.
The embodiment of the present invention increases the data interaction function of IM applications, current when the embedded web page windows applied in IM When detecting the write operation of user in webpage, the data of user's write-in are obtained, and obtains and is corresponded to for storing current web page Group webpage interaction data array, using the data of the storage of array said write, then IM application in realize Data exchange process is redirected without what is applied, simplifies the operating process of data interaction, improves data interaction efficiency.
Fig. 2 is referred to, for the flow chart of another data interactive method provided in an embodiment of the present invention;This method may include Following steps S201- steps S216.
When S201, IM application log in, is read from the memory space where IM applications and be useful for storing the IM The array of the webpage interaction data of group in;
Each array of reading is loaded onto in memory by S201;
The embodiment of the present invention increases the data interaction function of IM applications, i.e. IM applications allow user directly to be applied in IM Data interaction operation is executed for the corresponding webpage of group in embedded web page windows, and receives user and executes data interaction operation production Raw webpage interaction data.In step S201-S202, the number of the webpage interaction data for storing the group in the IM applications Group is stored in the memory space where the IM applications, when IM applications log in, is then read each array and is loaded onto memory In, in order to execute data interaction operation to the corresponding webpage of group according to user, the webpage interaction data in array is carried out Update.
In order to ensure the performance of IM applications, it is preferable that the quantity that IM applications can limit array is default no more than first The quantity of threshold value, the webpage interaction data in each array is not more than the second predetermined threshold value, i.e. IM applications up to first are default The group of number of thresholds stores webpage interaction data, and the webpage interaction of the second pre-set threshold numbers is stored up to for each group Data.Wherein, the first predetermined threshold value can be set with the second predetermined threshold value according to actual conditions, such as:It is pre- that first can be set If threshold value is 10, then IM applications up to 10 groups store webpage interaction data;The second predetermined threshold value can be set as 5, then IM 5 webpage interaction datas are stored up to using for each group.
S203 is read if detecting read operation of the user to any one group in IM applications according to the user The mark of the group taken searches whether the array for the webpage interaction data for having for storing the group from memory; If lookup result is yes, it is transferred to S204;
IM application log in after, can IM apply embedded web page windows in displayed web page, specifically, user open IM application Some group chat window when, IM applications are then from the corresponding web data of the server pull group, and in embedded webpage The corresponding webpage of the group is shown in window.User not only may browse through web data, the embedded webpage that can also be applied in IM Data interaction operation is executed in the webpage that window is shown, such as:Make comments, upload audio-video document, listen song, sectional drawing etc. Deng, the interaction that realization is applied based on IM, the social interaction server that experience IM applications provide.Wherein, any one group in being applied to IM Read operation include but unlimited:Read operation to the webpage interaction data of the group, such as:Check the Member Users in the group The picture, etc. that the Member Users in the group upload is checked in the comment delivered.
In this step, if finding the array of the webpage interaction data for storing the group in memory, show IM applications have stored the webpage interaction data of the group, then can be transferred to step S204;If do not found in memory for depositing The array for storing up the webpage interaction data of the group shows that IM applications do not store webpage interaction data or the group of the group There is no webpage interaction datas, then can inquire the webpage interaction data of the group to server again, are applied in IM if inquiring Embedded web page windows in show the interaction data of the group inquired, in the embedded webpage window of IM applications if not inquiring Blank page is shown in mouthful.
S204 shows that the webpage in the array found interacts number in the embedded web page windows of IM applications According to;
In the prior art, the data shown in the embedded web page windows of IM applications(Webpage interaction data including group)? It needs, from server pull, to be limited to Network status and server performance, directly can influence IM applications from server pull data To the response time of user's read operation;When Network status is unstable or server performance is unstable, and data pull is caused to fail, The embedded web page windows of IM applications directly display blank page, leverage the usage experience that user applies IM.This implementation In the step S203-S204 of example, IM applications can locally preserve the webpage interaction data of group, and group is directly obtained from memory Webpage interaction data, and shown in embedded web page windows, IM can be shortened using the response time to user's read operation, carried Interactive efficiency is risen, and is not only restricted to Network status or server performance, promotes the usage experience that user applies IM, the present invention is also The compatible prior art improves the flexibility of data interaction.
S205 is obtained if detecting the write operation of user in the current web page of the embedded web page windows of IM applications Take the data of user's write-in;This step can be found in step S101 shown in FIG. 1, and this will not be repeated here.
S206 searches whether to exist in memory described for storing according to the corresponding group identification of the current web page The array of the webpage interaction data of group;If lookup result is no, it is transferred to S207;Otherwise, it is transferred to S216, obtains and finds The array;
The search procedure of this step can be found in above-mentioned steps S203, and this will not be repeated here.It is used for if found in memory The array for storing the webpage interaction data of the group shows that IM applications have stored the webpage interaction data of the group, then may be used It is transferred to step S216, directly acquires the array found.If not finding the net for storing the group in memory The array of page interaction data, showing IM, there is no webpage interactions using the webpage interaction data or the group for not storing the group Data can then be transferred to step S207.
S207, judges whether the quantity of the array in the memory is equal to the first predetermined threshold value;If it is judged that be it is yes, It is transferred to S208;Otherwise, it is transferred to S209;
Since there is no the arrays of the webpage interaction data for storing the group in memory, in order to preserve said write Data, realize the data exchange process of user and IM application, then need to create the webpage for storing the group and interact number According to array.It has been observed that in order to ensure the performance of IM applications, it is preferable that the quantity that IM applications can limit array is not more than The group that the application of first predetermined threshold value, i.e. IM is up to the first pre-set threshold numbers stores webpage interaction data.Wherein, first is pre- If threshold value can be set according to actual conditions, such as:The first predetermined threshold value can be set as 10, then IM applications are up to 10 groups Group storage webpage interaction data.If the judging result of this step is yes, show that the quantity of the array in IM applications has reached Limit value needs first to eliminate existing array, could create new array;If the judging result of this step is no, show that IM is applied In the quantity of array be not up to upper limit value, can directly create new array.
S208 deletes earliest created array in the memory according to the creation time of each array in the memory;
Wherein, each array is when being created, corresponding corresponding creation time.The actual time may be used in creation time Value is indicated, such as:2012-1-2-14:00;The creation time can also be indicated using timestamp, such as: 1325484000。
S209 creates the array of the webpage interaction data for storing the group in the memory;It is appreciated that It is when creating the array of webpage interaction data for storing the group in the memory, to record the establishment of the array Time.
S210, judges whether the quantity of the webpage interaction data stored in the array is equal to the second predetermined threshold value;If Judging result is yes, is transferred to S211;Otherwise, it is transferred to S212;
In order to ensure the performance of IM applications, it is preferable that IM applications can limit the webpage interaction data in each array Quantity be not more than the second predetermined threshold value, i.e. IM apply for each group store up to the second pre-set threshold numbers webpage interaction Data.Wherein, the second predetermined threshold value can be set according to actual conditions, such as:The second predetermined threshold value can be set as 5, then IM 5 webpage interaction datas are stored up to using for each group.If the judging result of this step is yes, show that the array is deposited The quantity of the webpage interaction data of storage has reached upper limit value, needs first to eliminate existing webpage interaction data, could store new net Page interaction data;If the judging result of this step is no, show that the quantity of the webpage interaction data of the storage of array does not reach To upper limit value, new webpage interaction data can be directly stored.
S211 deletes oldest stored in the array according to the storage time of each webpage interaction data in the array Webpage interaction data;
Wherein, every webpage interaction data in array is when being added into array, corresponding corresponding storage time.It deposits The storage time may be used actual time value and be indicated, such as:2012-1-2-14:00;When the storage time can also use Between stab and be indicated, such as:1325484000.
S212 determines that the data type of the data of said write, the data type include text data type or media Data type;Wherein, media data type includes but not limited to:Picture, audio file and video file.
S213 corresponds to the data of said write if the data type of the data of said write is text data type Character string be added in the array;
In the specific implementation, for example:Delivering one section in the webpage that the embedded web page windows that user applies in IM are shown only includes The comment of word, then the data of user's write-in are text data, and the character string that user is written then directly is added to institute by this step It states in array.
S214 corresponds to the data of said write if the data type of the data of said write is media data type The addresses URL be added in the array;
In the specific implementation, for example:A width picture is uploaded in the webpage that the embedded web page windows that user applies in IM are shown, Then the data of user's write-in are media data, the corresponding URL of picture that this step then uploads user(Uniform/ Universal Resource Locator, uniform resource locator)Address is added in the array.
S215 reads the array, and extremely by the storage of array when IM applications are logged off from the memory In memory space where the IM applications.
In this step, answered IM in the memory space where the array readback in memory to IM applications, then can be achieved With the synchronized update of the array in the memory space at place, operated in order to log in the data interaction that IM applications carry out next time.
The embodiment of the present invention increases the data interaction function of IM applications, current when the embedded web page windows applied in IM When detecting the write operation of user in webpage, the data of user's write-in are obtained, and obtains and is corresponded to for storing current web page Group webpage interaction data array, using the data of the storage of array said write, then IM application in realize Data exchange process is redirected without what is applied, simplifies the operating process of data interaction, improves data interaction efficiency.
Below in conjunction with attached drawing 3- attached drawings 6, describe in detail to data interaction device provided in an embodiment of the present invention.It needs It is noted that following devices can be applied in above-mentioned method.
Fig. 3 is referred to, for a kind of structural schematic diagram for data interaction device that present invention implementation provides;The device can wrap It includes:It writes data acquisition module 101, array acquisition module 102 and writes processing module 103.
Data acquisition module 101 is write, after in IM using logging in, if in the IM embedded web page windows applied The write operation that user is detected in current web page obtains the data of user's write-in;
IM application log in after, can IM apply embedded web page windows in displayed web page, specifically, user open IM application Some group chat window when, IM applications are then from the corresponding web data of the server pull group, and in embedded webpage The corresponding webpage of the group is shown in window.User not only may browse through web data, the embedded webpage that can also be applied in IM Data interaction operation is executed in the webpage that window is shown, such as:Make comments, upload audio-video document, listen song, sectional drawing etc. Deng, the interaction that realization is applied based on IM, the social interaction server that experience IM applications provide.Wherein, write operation includes but not limited to:It delivers Comment on, deliver message, uploading pictures, upload audio-video document etc., write data acquisition module 101 then obtains the user The data of write-in.
Array acquisition module 102, for according to the corresponding group identification of the current web page, obtaining for storing the group The array of the webpage interaction data of group;
Wherein, for group identification for a group in unique mark IM applications, which can be the account of group Number, title or keyword, etc..Wherein, the webpage interaction data of group is:Member Users in group apply embedded in IM The interaction data that interactive operation generates is executed in the webpage of window displaying.The webpage interaction data of group can be used array form into Row storage, the current web page that the array acquisition module 102 is shown according to the embedded window that IM is applied, it may be determined that current web page pair The group answered;According to the group identification of the group, the array of the webpage interaction data for storing the group can be obtained.
Processing module 103 is write, for the data of said write to be added in the array.
Wherein, the data of said write are that the user executes in the current web page for the embedded window displaying that IM is applied The webpage interaction data that write operation generates.The processing module 103 of writing is using the data of said write as the current web page pair The webpage interaction data for the group answered is added in the array of the webpage interaction data for storing the group and is preserved.
It will describe in detail below to each module of above-mentioned apparatus.
Fig. 4 is referred to, is the structural schematic diagram of the embodiment of array acquisition module shown in Fig. 3;The array acquisition module 102 may include:Array searching unit 1201 and array acquiring unit 1202.
Array searching unit 1201, for according to the corresponding group identification of the current web page, searching whether in memory In the presence of the array of the webpage interaction data for storing the group;
Array acquiring unit 1202, for if it is present obtaining the array found;And if for not depositing The array of the webpage interaction data for storing the group is then being created in the memory.
If the array searching unit 1201 finds the webpage interaction data for storing the group in memory Array, show that IM applications have stored the webpage interaction data of the group, the array acquiring unit 1202 can directly acquire The array found.If the array searching unit 1201 does not find the webpage for storing the group in memory The array of interaction data shows that IM applications do not store the webpage interaction data of the group or the group is not present webpage and interacts number According to array acquiring unit 1202 needs to create the array of the webpage interaction data for storing the group in the memory.
Fig. 5 is referred to, is the structural schematic diagram of the embodiment shown in Fig. 3 for writing processing module;This writes processing module 103 can Including:Data type determination unit 1301 and write processing unit 1302.
Data type determination unit 1301, the data type of the data for determining said write, the data type packet Include text data type or media data type;Wherein, media data type includes but not limited to:It picture, audio file and regards Frequency file.
Processing unit 1302 is write, it, will be described if the data type of the data for said write is text data type The corresponding character string of data of write-in is added in the array;And if it is used for the data type of the data of said write For media data type, the corresponding addresses URL of the data of said write are added in the array.
The embodiment of the present invention increases the data interaction function of IM applications, current when the embedded web page windows applied in IM When detecting the write operation of user in webpage, the data of user's write-in are obtained, and obtains and is corresponded to for storing current web page Group webpage interaction data array, using the data of the storage of array said write, then IM application in realize Data exchange process is redirected without what is applied, simplifies the operating process of data interaction, improves data interaction efficiency.
Fig. 6 is referred to, for the structural schematic diagram of another data interaction device provided in an embodiment of the present invention;The device can Including:It writes data acquisition module 101, array acquisition module 102, write processing module 103, the first judgment module 104, the first result Processing module 105, the second judgment module 106, the second result treatment module 107, readback module 108, initialization module 109 and reading Processing module 110.Wherein, data acquisition module 101, array acquisition module 102 are write and writes the structure of processing module 103 and can be found in Associated description in Fig. 3-embodiment illustrated in fig. 5, this will not be repeated here.
First judgment module 104, for judging whether the quantity of the array in the memory is equal to the first predetermined threshold value;
In order to ensure the performance of IM applications, it is preferable that the quantity that IM applications can limit array is default no more than first The group that the application of threshold value, i.e. IM is up to the first pre-set threshold numbers stores webpage interaction data.Wherein, the first predetermined threshold value can It is set according to actual conditions, such as:The first predetermined threshold value can be set as 10, then IM applications up to 10 groups store nets Page interaction data.If 104 judging result of the first judgment module is yes, show that the quantity of the array in IM applications has reached Upper limit value needs first to eliminate existing array, could create new array;If the judging result of first judgment module 104 It is no, shows that the quantity of the array in IM applications is not up to upper limit value, can directly create new array.
First result treatment module 105, for being equal to the first predetermined threshold value when the quantity for judging the array in the memory When, according to the creation time of each array in the memory, earliest created array in the memory is deleted, and notify the array Acquiring unit creates the array of the webpage interaction data for storing the group in the memory.
Whether the second judgment module 106, the quantity of the webpage interaction data for judging to store in the array are equal to the Two predetermined threshold values;
In order to ensure the performance of IM applications, it is preferable that IM applications can limit the webpage interaction data in each array Quantity be not more than the second predetermined threshold value, i.e. IM apply for each group store up to the second pre-set threshold numbers webpage interaction Data.Wherein, the second predetermined threshold value can be set according to actual conditions, such as:The second predetermined threshold value can be set as 5, then IM 5 webpage interaction datas are stored up to using for each group.If the judging result of second judgment module 106 is yes, Show that the quantity of the webpage interaction data of the storage of array has reached upper limit value, need first to eliminate existing webpage interaction data, New webpage interaction data could be stored;If the judging result of second judgment module 106 is no, show that the array is deposited The quantity of the webpage interaction data of storage is not up to upper limit value, can directly store new webpage interaction data.
Second result treatment module 107, the quantity for working as the webpage interaction data for judging to store in the array are equal to Second predetermined threshold value deletes oldest stored in the array according to the storage time of each webpage interaction data in the array Webpage interaction data, and write processing module described in notice and the data of said write are added in the array.
Readback module 108, for when IM applications are logged off, the array being read from the memory, and will In memory space where the storage of array to IM applications.The readback module 108 by the array readback in memory extremely In memory space where the IM applications, then the synchronized update of the array in the memory space at IM applications place can be achieved, with Convenient for logging in the data interaction operation that IM applications carry out next time.
Initialization module 109, for when IM applications log in, being read from the memory space where IM applications all Array for the webpage interaction data for storing the group in the IM applications, and each array of reading is loaded onto memory In;
The embodiment of the present invention increases the data interaction function of IM applications, i.e. IM applications allow user directly to be applied in IM Data interaction operation is executed for the corresponding webpage of group in embedded web page windows, and receives user and executes data interaction operation production Raw webpage interaction data.The array of webpage interaction data for storing the group in the IM applications is stored in the IM Using in the memory space at place, when IM applications log in, the initialization module 109 then reads each array and is loaded onto memory In, in order to execute data interaction operation to the corresponding webpage of group according to user, the webpage interaction data in array is carried out Update.
Processing module 110 is read, after in IM using logging in, if detecting that user applies the IM The read operation of group searches whether to exist from memory for storing according to the mark for the group that the user reads The array of the webpage interaction data of group is stated, is found if it is present being shown in the embedded web page windows of IM applications The array in webpage interaction data.
IM application log in after, can IM apply embedded web page windows in displayed web page, specifically, user open IM application Some group chat window when, IM applications are then from the corresponding web data of the server pull group, and in embedded webpage The corresponding webpage of the group is shown in window.User not only may browse through web data, the embedded webpage that can also be applied in IM Data interaction operation is executed in the webpage that window is shown, such as:Make comments, upload audio-video document, listen song, sectional drawing etc. Deng, the interaction that realization is applied based on IM, the social interaction server that experience IM applications provide.Wherein, any one group in being applied to IM Read operation include but unlimited:Read operation to the webpage interaction data of the group, such as:Check the Member Users in the group The picture, etc. that the Member Users in the group upload is checked in the comment delivered.
If finding the array of the webpage interaction data for storing the group in memory, show that IM applications have been deposited The webpage interaction data of the group is stored up, the reading processing module 110 is shown in the embedded web page windows that the IM is applied to be looked into Webpage interaction data in the array found.It should be noted that if not found in memory for storing the group The array of the webpage interaction data of group shows that IM applications do not store the webpage interaction data of the group or net is not present in the group Page interaction data, the processing module 110 of reading can inquire the webpage interaction data of the group to server again, if inquiring The interaction data that the group inquired is shown in the embedded web page windows of IM applications, in the embedded of IM applications if not inquiring Blank page is shown in web page windows.The webpage interaction number that group can be directly obtained from memory for reading processing module 110 According to, and shown in embedded web page windows, IM can be shortened using the response time to user's read operation, promote interaction effect Rate, and it is not only restricted to Network status or server performance, promote the usage experience that user applies IM.
It should be noted that the structure and function of the data interaction device of the embodiment of the present invention can be implemented by the above method Method specific implementation in example, the specific implementation process can be found in the associated description in above method embodiment, and this will not be repeated here.
The embodiment of the present invention increases the data interaction function of IM applications, current when the embedded web page windows applied in IM When detecting the write operation of user in webpage, the data of user's write-in are obtained, and obtains and is corresponded to for storing current web page Group webpage interaction data array, using the data of the storage of array said write, then IM application in realize Data exchange process is redirected without what is applied, simplifies the operating process of data interaction, improves data interaction efficiency.
The embodiment of the present invention additionally provides a kind of client, including IM applications, further includes data interaction device, wherein number The associated description in Fig. 3-embodiment illustrated in fig. 6 is can be found according to the structure of interactive device, this will not be repeated here.
By the description of above-described embodiment, the embodiment of the present invention increases the data interaction function of IM applications, is answered when in IM When detecting the write operation of user in the current web page of embedded web page windows, the data of user's write-in are obtained, and are obtained It takes in the array of the webpage interaction data of the corresponding group of storage current web page, using the number of the storage of array said write According to, then IM application in realize data exchange process, redirected without what is applied, simplify the operation stream of data interaction Journey improves data interaction efficiency.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (16)

1. a kind of data interactive method, which is characterized in that including:
After instant messaging IM applications log in, if detecting user in the current web page of the embedded web page windows of IM applications Write operation, obtain the data of user write-in;
According to the corresponding group identification of the current web page, the array of the webpage interaction data for storing the group is obtained;
The data of said write are added in the array.
2. the method as described in claim 1, which is characterized in that it is described according to the corresponding group identification of the current web page, it obtains It takes in the array for the webpage interaction data for storing the group, including:
According to the corresponding group identification of the current web page, the webpage for having for storing the group is searched whether in memory The array of interaction data;
If it is present obtaining the array found;
If it does not exist, then creating the array of the webpage interaction data for storing the group in the memory.
3. method as claimed in claim 2, which is characterized in that described to be created in the memory for storing the group Before the array of webpage interaction data, further include:
Judge whether the quantity of the array in the memory is equal to the first predetermined threshold value;
If the quantity of the array in the memory is equal to the first predetermined threshold value, according in the memory when establishment of each array Between, earliest created array in the memory is deleted, to execute the webpage created in the memory for storing the group The step of array of interaction data.
4. the method as described in claim 1, which is characterized in that it is described that the data of said write are added in the array, Including:
Determine that the data type of the data of said write, the data type include text data type or media data type;
If the data type of the data of said write is text data type, the corresponding character string of the data of said write is added It adds in the array;
If the data type of the data of said write is media data type, by the corresponding addresses URL of the data of said write It is added in the array.
5. method as claimed in claim 4, which is characterized in that it is described by the data of said write be added to the array it Before, further include:
Judge whether the quantity of the webpage interaction data stored in the array is equal to the second predetermined threshold value;
If the quantity of the webpage interaction data stored in the array is equal to the second predetermined threshold value, according to each in the array The storage time of webpage interaction data deletes the webpage interaction data of oldest stored in the array, to execute said write Data the step of being added to the array.
6. method as described in any one in claim 1-5, which is characterized in that it is described the data of said write are added to it is described After in array, further include:
When the IM applications are logged off, the array is read from memory, and the storage of array to the IM is applied into institute Memory space in.
7. method as claimed in claim 6, which is characterized in that after the IM applications log in, in the embedded net of IM applications Before the write operation for detecting user in the current web page of page window, further include:
If detecting the read operation of any one group during user applies the IM, the group read according to the user The mark of group searches whether the array for the webpage interaction data for having for storing the group from memory;
If it is present showing that the webpage in the array found interacts number in the embedded web page windows of IM applications According to.
8. as claim is the method for claim 7, which is characterized in that further include:
When IM applications log in, it is useful for storing the group in the IM applications from reading in the memory space where IM applications The array of the webpage interaction data of group;
Each array of reading is loaded onto in memory.
9. a kind of data interaction device, which is characterized in that including:
Data acquisition module is write, after in IM using logging in, if the current net of the embedded web page windows in IM applications The write operation that user is detected in page obtains the data of user's write-in;
Array acquisition module, for according to the corresponding group identification of the current web page, obtaining the net for storing the group The array of page interaction data;
Processing module is write, for the data of said write to be added in the array.
10. device as claimed in claim 9, which is characterized in that the array acquisition module includes:
Array searching unit is used for for according to the corresponding group identification of the current web page, searching whether to exist in memory Store the array of the webpage interaction data of the group;
Array acquiring unit, for if it is present obtaining the array found;And be used for if it does not exist, then The array of the webpage interaction data for storing the group is created in the memory.
11. device as claimed in claim 10, which is characterized in that further include:
First judgment module, for judging whether the quantity of the array in the memory is equal to the first predetermined threshold value;
First result treatment module is used for when the quantity for judging the array in the memory is equal to the first predetermined threshold value, according to The creation time of each array in the memory deletes earliest created array in the memory, and it is single to notify that the array obtains Member creates the array of the webpage interaction data for storing the group in the memory.
12. device as claimed in claim 9, which is characterized in that the processing module of writing includes:
Data type determination unit, the data type of the data for determining said write, the data type includes textual data According to type or media data type;
Processing unit is write, if the data type of the data for said write is text data type, by the number of said write It is added in the array according to corresponding character string;And if the data type of the data for said write is media number According to type, the corresponding addresses URL of the data of said write are added in the array.
13. device as claimed in claim 12, which is characterized in that further include:
Whether the quantity of the second judgment module, the webpage interaction data for judging to store in the array is equal to the second default threshold Value;
Second result treatment module, for being preset when the quantity for the webpage interaction data for judging to store in the array is equal to second Threshold value deletes the webpage interaction of oldest stored in the array according to the storage time of each webpage interaction data in the array Data, and write processing module described in notice and the data of said write are added in the array.
14. such as claim 9-13 any one of them devices, which is characterized in that further include:
Readback module, for when IM applications are logged off, reading the array from memory, and by the storage of array Into the memory space where IM applications.
15. device as claimed in claim 14, which is characterized in that further include:
Initialization module, for when IM applications log in, being read from the memory space where IM applications and being useful for depositing The array of the webpage interaction data of the group in the IM applications is stored up, and each array of reading is loaded onto in memory;
Processing module is read, after in IM using logging in, if detecting user to any one group in IM applications Read operation searches whether to exist from memory for storing the group according to the mark for the group that the user reads Webpage interaction data array, if it is present the IM application embedded web page windows in display find described in Webpage interaction data in array.
16. a kind of client, including IM applications, which is characterized in that further include such as claim 9-15 any one of them data Interactive device.
CN201210578324.4A 2012-12-27 2012-12-27 A kind of data interactive method, device and client Active CN103905290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210578324.4A CN103905290B (en) 2012-12-27 2012-12-27 A kind of data interactive method, device and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210578324.4A CN103905290B (en) 2012-12-27 2012-12-27 A kind of data interactive method, device and client

Publications (2)

Publication Number Publication Date
CN103905290A CN103905290A (en) 2014-07-02
CN103905290B true CN103905290B (en) 2018-11-06

Family

ID=50996448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210578324.4A Active CN103905290B (en) 2012-12-27 2012-12-27 A kind of data interactive method, device and client

Country Status (1)

Country Link
CN (1) CN103905290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011899A (en) * 2019-03-07 2019-07-12 重庆神指奇动网络有限公司 A kind of information communication system chatted suitable for more crowds and information is shown
CN114065705A (en) * 2020-07-31 2022-02-18 西安诺瓦星云科技股份有限公司 Program text processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883058A (en) * 2010-07-02 2010-11-10 苏州阔地网络科技有限公司 General method for realizing group communication on webpage
CN102821117A (en) * 2011-06-09 2012-12-12 潘晓丰 Method and system for obtaining and displaying groups

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102358A1 (en) * 2003-11-10 2005-05-12 Gold Stuart A. Web page monitoring and collaboration system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883058A (en) * 2010-07-02 2010-11-10 苏州阔地网络科技有限公司 General method for realizing group communication on webpage
CN102307155A (en) * 2010-07-02 2012-01-04 苏州阔地网络科技有限公司 Method for realizing group communication
CN102821117A (en) * 2011-06-09 2012-12-12 潘晓丰 Method and system for obtaining and displaying groups

Also Published As

Publication number Publication date
CN103905290A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CA2891213C (en) Providing content recommendation to users on a site
CN111740896B (en) Content sharing control method and device, electronic equipment and storage medium
US10530899B2 (en) Method and system for establishing a trust association
US9159074B2 (en) Tool for embedding comments for objects in an article
US9823806B2 (en) Sponsored story creation user interface
KR101131797B1 (en) Aggregated view of local and remote social information
US9547697B2 (en) Aggregating interactions for content items
US20150334068A1 (en) Message processing method and apparatus
US20140344707A1 (en) Information Distribution Method and Device
US8903909B1 (en) Detecting and extending engagement with stream content
KR20160055800A (en) Selecting content items for presentation to a social networking system user in a newsfeed
KR20190004847A (en) Negative signals for advertisement targeting
WO2010008769A2 (en) Method and apparatus for sharing concurrent ad hoc web content between users visiting the same web pages
US10990620B2 (en) Aiding composition of themed articles about popular and novel topics and offering users a navigable experience of associated content
JP5696213B2 (en) Context-based item bookmarking
CN104426863B (en) A kind of page request method, page request device, transfer server and terminal
CN103905290B (en) A kind of data interactive method, device and client
US9417773B2 (en) Mobile application pre-fetching using a state framework
CN103942213A (en) Data paging method and device
CN103577463B (en) Searching method, system and the device of content source
US20150026266A1 (en) Share to stream
JP5509131B2 (en) Contributor identification method, server, and program for associating user's post with user's subscriber identifier
CN104378278B (en) The method and system of micro- communication audio broadcasting are carried out in mobile terminal
US20130117112A1 (en) Method and system for placing targeted ads into email or web page with comprehensive domain name data
WO2012117397A2 (en) System and method for social network platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190731

Address after: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

TR01 Transfer of patent right