CN103198142B - Page data renewal processing method, client and server - Google Patents

Page data renewal processing method, client and server Download PDF

Info

Publication number
CN103198142B
CN103198142B CN201310134335.8A CN201310134335A CN103198142B CN 103198142 B CN103198142 B CN 103198142B CN 201310134335 A CN201310134335 A CN 201310134335A CN 103198142 B CN103198142 B CN 103198142B
Authority
CN
China
Prior art keywords
operation interface
mark
page
interface
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.)
Active
Application number
CN201310134335.8A
Other languages
Chinese (zh)
Other versions
CN103198142A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310134335.8A priority Critical patent/CN103198142B/en
Publication of CN103198142A publication Critical patent/CN103198142A/en
Application granted granted Critical
Publication of CN103198142B publication Critical patent/CN103198142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present invention, which provides a kind of page data renewal processing method, client and server, this method, to be included:Receive the first operation requests that the operation interface in client is sent, according to first page fresh information, processing is updated to the page corresponding with the mark of operation interface in spatial cache, because each operation interface has uniquely, indicate the mark of the operation interface, so that client is in the operating process for carrying out paging substep to safeguarding object, by caused average information in each step by being buffered in shared spatial cache with the mark that is identified as of operation interface, the data of each operation interface are separate in spatial cache, even if client safeguards that object operates by different operating interface to same, also the problem of data cover will not occur.

Description

Page data renewal processing method, client and server
Technical field
The present invention relates to network communication technology field, more particularly to a kind of page data update method, client and service Device.
Background technology
In WEB application system, IE browser that maintenance of information person passes through client etc. can be conducted interviews to server, tieed up Shield etc., the page is shown by the different options card of browser or different windows, the mechanism cached using intermediate data enters industry Business maintenance etc..
In the prior art, the identification number for being maintained object can typically be used(Identity, hereinafter referred to as ID)Come Operating sessions layer, i.e., stored in session layer all unlatchings window or tab in the ID for safeguarding object, pass through the storage ID confirm to safeguard object, when " previous step " or " next step " of the page for clicking on different options card or different windows, root Object, which is safeguarded, corresponding to being found according to ID in session layer is safeguarded etc. with being updated.
However, when the information that different pages needs are safeguarded is more, during maintenance of information is carried out, especially entering Row modification etc. can safeguard that two windows of opening or tab are compared object simultaneously in operating process to same, now, if The irregular page for clicking on different options card or window of user, then shared because the different windows or tab of browser have The characteristic of session layer, the problem of easily causing data cover.
The content of the invention
The embodiment of the present invention provides a kind of page data renewal processing method, client and server, to solve data more In new processing procedure, the different window of browser or different tabs due to share session layer and caused by data cover Problem.
One side, the embodiment of the present invention provide a page kind data update processing method, including:
The first operation requests that the operation interface in client is sent are received, institute is included in first operation requests State the mark of the first page fresh information and the operation interface in operation interface;
According to the first page fresh information, the page corresponding with the mark of the operation interface in spatial cache is entered Row renewal is handled.
It is described according to the first page fresh information in the possible implementation of in the first aspect the first, it is right After the page corresponding with the mark of the operation interface is updated processing in spatial cache, in addition to:
The first operation response is sent to the client, the mark of the operation interface is included in the first operation response Know.
With reference to one side or the first possible implementation of one side, second of possible realization side In formula, before the first operation requests that operation interface of the reception in client is sent, in addition to:
Receive the second operation requests that the operation interface in the client is sent, the second operation requests instruction Need to be updated processing to the operation interface;Generate the mark of the operation interface;The second operation is returned to client to ring Should, second operation carries the mark of the window interface in responding.
With reference to second of possible implementation of one side, in the third possible implementation, the life Into the mark of the operation interface, including:According to the opening time of the operation interface, the mark of the operation interface is generated; Or the mark of the operation interface is generated at random.
With reference to one side the first, in second or the third possible implementation, in the 4th kind of possible reality In existing mode, the mark of the operation interface is carried in the operation response in the form of hiding field.
With reference to the on one side, one side the first to any of the 4th kind of possible implementation may Implementation, it is described according to the first page fresh information in the 5th kind of possible implementation, in spatial cache After the page corresponding with the mark of the operation interface is updated processing, in addition to:
According to preset strategy, the mark of the operation interface is purged;Or
The renewal processing ending request that the operation interface in the client is sent is received, to the operation interface Mark is purged.
With reference to the 5th kind of possible implementation of one side, in the 6th kind of possible implementation, described According to preset strategy, the mark of the operation interface is purged, including:
According to timing Prune Policies or maximum mark number restriction strategy, the mark of the operation interface is purged.
With reference to the on one side, one side the first to any of the 6th kind of possible implementation may Implementation, in the 7th kind of possible implementation, the operation interface is browser window or tab.
With reference to the on one side, one side the first to any of the 7th kind of possible implementation may Implementation, in the 8th kind of possible implementation, the spatial cache is session layer, information record program or distribution Memory object caching system.
Second aspect, the embodiment of the present invention provide a kind of page data renewal processing method, including:
First operation requests are sent to server by operation interface, operation circle is included in first operation requests The mark of first page fresh information and the operation interface on face;
The first operation response that the server is sent is received, comprising the operation interface in the first operation response Mark;
The mark of the operation interface is parsed from the described first operation response.
It is described to send first to server by operation interface in the possible implementation of in second aspect the first Operation requests, the first page fresh information in the operation interface and the operation interface are included in first operation requests Mark before, in addition to:
Second operation requests are sent to the server by the operation interface, second operation requests are needed to institute State operation interface and be updated processing;
The second operation response that the server is sent is received, the window interface is carried in the second operation response Mark.
3rd aspect, the embodiment of the present invention provide a kind of server, including:
Receiving module, the first operation requests that the operation interface for receiving in client is sent, first behaviour Ask comprising the first page fresh information and the mark of the operation interface in the operation interface;
Processing module, for according to the first page fresh information, to the mark in spatial cache with the operation interface The page corresponding to knowledge is updated processing.
In the first possible implementation of the 3rd aspect, the server also includes:
First sending module, respond for sending the first operation to the client, included in the first operation response The mark of the operation interface.
With reference to the 3rd aspect or the first possible implementation of the 3rd aspect, second of possible realization side In formula, the receiving module is additionally operable to:
Receive the second operation requests that the operation interface in the client is sent, the second operation requests instruction Need to be updated processing to the operation interface;
The processing module is additionally operable to generate the mark of the operation interface;
The server also includes the second sending module, is responded for returning to the second operation to client, second behaviour The mark of the window interface is carried in responding.
With reference to second of possible implementation of the 3rd aspect, in the third possible implementation, the place Module is managed, is specifically used for:
According to the opening time of the operation interface, the mark of the operation interface is generated;Or
The mark of the operation interface is generated at random.
With reference to the 3rd aspect the first, in second or the third possible implementation, in the 4th kind of possible reality In existing mode, the mark of the operation interface is carried in the operation response in the form of hiding field.
With reference to the 3rd aspect, the 3rd aspect the first to any of the 4th kind of possible implementation may Implementation, in the 5th kind of possible implementation, the server also includes:
Module is removed, for according to preset strategy, being purged to the mark of the operation interface;Or
The renewal that the operation interface transmission in the client is received in the receiving module handles ending request When, the mark of the operation interface is purged.
It is described clear in the 6th kind of possible implementation with reference to the 5th kind of possible implementation of the 3rd aspect Except module is specifically used for:
According to timing Prune Policies or maximum mark number restriction strategy, the mark of the operation interface is purged.
With reference to the 3rd aspect, the 3rd aspect the first to any of the 6th kind of possible implementation may Implementation, in the 7th kind of possible implementation, the operation interface is browser window or tab.
With reference to the 3rd aspect, the 3rd aspect the first to any of the 7th kind of possible implementation may Implementation, in the 8th kind of possible implementation, the spatial cache is session layer, information record program or distribution Memory object caching system.
4th aspect, the embodiment of the present invention provide a kind of client, including:
Sending module, for sending the first operation requests to server by operation interface, in first operation requests Include the first page fresh information and the mark of the operation interface in the operation interface;
Receiving module, the first operation response sent for receiving the server, is included in the first operation response The mark of the operation interface;
Parsing module, for parsing the mark of the operation interface from the described first operation response.
In the first possible implementation of the 4th aspect, the sending module is additionally operable to:
Second operation requests are sent to the server by operation interface, second operation requests are needed to the behaviour Processing is updated as interface;
The receiving module is additionally operable to receive the second operation response that the server is sent, in the second operation response Carry the mark of the window interface.
The embodiment of the present invention provides a kind of page data renewal processing method, client and server, and server, which receives, to be come The first page fresh information included in the operation interface and the mark of operation interface sent from the operation interface in client The first operation requests, according to first page fresh information, the page corresponding with the mark of operation interface in spatial cache is entered Row renewal is handled.In the embodiment of the present invention, because each operation interface has mark that is unique, indicating the operation interface, work as behaviour Make maintenance object in interface it is more when, further, each safeguard object can use the mark of operation interface with should Safeguard that the combination of the identity of object uniquely indicates so that client is to safeguarding that object carries out the operating process of paging substep In, by caused average information in each step by being buffered in shared caching sky with the mark that is identified as of operation interface Between, the data of each operation interface are separate in spatial cache, even if client by different operating interface to same maintenance Object is operated, the problem of data cover will not also occur.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart that page data of the present invention updates processing method embodiment one;
Fig. 2 is the flow chart that page data of the present invention updates processing method embodiment two;
Fig. 3 is the signaling diagram that page data of the present invention updates processing method embodiment three;
Fig. 4 is the structural representation of server example one of the present invention;
Fig. 5 is the structural representation of server example two of the present invention;
Fig. 6 is the structural representation of client of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart that page data of the present invention updates processing method embodiment one, and the executive agent of the present embodiment is Server.Specifically, the present embodiment comprises the following steps:
101st, the first operation requests that the operation interface in client is sent are received, behaviour is included in the first operation requests Make the mark of the first page fresh information and operation interface on interface.
Operation interface in client is typically presented with tab or the pattern of browser window, each tab or is browsed Device window can have one or more to safeguard object, and object is safeguarded for each, can have again including the maintenance object information Multiple pages, have on each page for order buttons such as " newly-increased ", " deletion ", " modification " or " preservation " of user's operation; Or select buttons such as " page ups " or " lower one page " of the different pages is selected for user.By taking IE8 operation interface as an example, if Operation interface is the display pattern of browser window, often opens a webpage, then is opened in new window and show the webpage;It is no Then, if operation interface is tab display pattern, a webpage is often opened, then newly-built tab, is opened in newly-built tab Show the webpage.In this step, client is updated after processing to the first page of operation interface and sends first to server Operation requests, for example, can maintenance of information personnel, event triggering property or the periodic first page to operation interface After being updated processing, instruction client has carried out renewal processing to the first page of the operation interface, and server receives the bag Containing the first page fresh information and the first operation requests of the mark of operation interface in operation interface.If specifically, client Renewal processing has been carried out to the first page at different operating interface, then carrying pair has been sent to server by each operation interface Answer the first page fresh information of operation interface and the mark of corresponding operation interface(Tab identifies or browser window mark Know)The first operation requests.
102nd, according to first page fresh information, the page corresponding with the mark of operation interface in spatial cache is carried out more New processing.
Spatial cache is the built-in caching mechanism of server, such as session layer(session), distributed memory target cache system System(memCached)Or the information record program of IE browser(Cookie)Deng the present invention is not limited thereto system.Work as server After the first page fresh information for receiving the mark of the carrying operation interface of client transmission, according to the mark of operation interface, Determine that the information of the page corresponding with the mark is updated processing in spatial cache, the original page letter that will be kept in Breath is updated to first page fresh information.In general, if the maintenance object in operation interface only has one or compares fixation, Operation interface corresponding with the mark is directly determined from spatial cache according to the mark of operation interface and is updated processing; Otherwise, if the maintenance object in operation interface is relatively more, according to the mark of operation interface determined from spatial cache with After operation interface corresponding to the mark, it can also determine specifically to safeguard object and then right according to the identity for safeguarding object The maintenance object is updated processing.That is, in this step, each operation interface has mark that is unique, indicating the operation interface Know;When the maintenance object in operation interface is more, further, each safeguard that object can use the mark of operation interface Know the identity with the maintenance object uniquely to indicate.
Page data provided in an embodiment of the present invention updates processing method, and server receives operation circle in client What face was sent includes the first operation requests of the mark of the first page fresh information and operation interface in the operation interface, according to First page fresh information, processing is updated to the page corresponding with the mark of operation interface in spatial cache.It is of the invention real Apply in example, because each operation interface has mark that is unique, indicating the operation interface, when the maintenance object ratio in operation interface When more, further, each safeguard that object can use mark and the identity of the maintenance object of operation interface The unique instruction of combination so that client will produce in the operating process for carrying out paging substep to safeguarding object in each step Raw average information with the mark that is identified as of operation interface by being buffered in shared spatial cache, each operation in spatial cache The data at interface are separate, even if client safeguards that object operates by different operating interface to same, will not also send out The problem of raw data cover.
In above-described embodiment one, according to first page fresh information, to the mark pair in spatial cache with operation interface The page answered is updated after processing, and server can return to the according to the concrete form of the first operation requests to client One operation response, the mark of operation interface is included in the first operation response.
Specifically, if the first operation requests are that the first page for safeguarding object in operation interface is carried out more in client After new processing processing, click on " next step " and enter what lower one page triggered to update the information of the second page of the maintenance object, i.e., by " next step " triggering is clicked on, then the parent page information of the newest second page of now server acquisition, and by operation interface Mark carries and is sent to client in the parent page information of second page, to cause client to parse the mark of operation interface Operation interface is determined, the parent page information of second page is shown in the operation interface determined and is updated processing.
If the first operation requests are to be updated processing to the first page for safeguarding object in operation interface in client Afterwards, " preservation " triggering, the then page info for safeguarding object after now server handles the renewal in spatial cache are clicked on Database is updated to, and the mark of operation interface is carried and sent out in the successful first operation response of renewal processing to client Send.
Further, in above-described embodiment one, server receives the first behaviour of the operation interface transmission in client Before asking, the mark of each operation interface generation operation interface to initiating the first operation requests is also needed.Specifically, service Device receives the second operation requests that the operation interface in client is sent, and the instruction of the second operation requests is needed to window interface It is updated processing;The mark of operation interface is generated, returning to the second operation to client is responded, and window is carried in the second operation response The mark at mouth interface.
In general, client is after operation interface is first switched on, if the maintenance object in the operation interface it is unique or Small number, then the second operation requests are sent to server by the operation interface, ask to be updated the user interface Processing;If the maintenance object in the operation interface is more, choose need update processing object after again by operation circle Service-oriented device sends the second operation requests, and processing is now updated to the user interface and is referred specifically to in the user interface Some safeguards that object is updated processing.
Server finds that the operation interface does not identify accordingly after second operation requests are received, then is the behaviour Make the mark of interface generation operation interface.Specifically, because the unlatching of each operation interface needs the time so that each operate boundary The time point that face is opened is different, then server according to the opening time of operation interface, can generate the mark of the operation interface;Or Person, the mark of the operation interface is randomly generated, it is, for example, possible to use the mark of the generation operation interface such as timestamp, random number, The algorithm of the mark of operation interface only needs to ensure uniqueness.
Further, because the mark of operation interface is only used for identifying the operation interface, not specific business meaning. Therefore, typically the mark of operation interface is carried in operation response in the form of field using hiding, for example, by operation interface Mark is arranged to carrying after hiding field and is sent to client in above-mentioned the first operation response or the second operation response.Specifically , flexible selection can be needed to be arranged to the mark of operation interface to hide field or without setting according to business.
Further, in order to prevent the mark of operation interface in shared spatial cache, or the behaviour of object is safeguarded in instruction The combination for making identity of the mark at interface with safeguarding object excessively causes data congestion, and server is according to first page Fresh information, can also be according to pre- after the page corresponding with the mark of operation interface is updated processing in spatial cache If tactful, according to timing Prune Policies or maximum mark number restriction strategy, the mark of operation interface is purged, for example, It is timing or event triggering property to go to clear up the mark of the operation interface;Or set one and refer to duration, if spatial cache In operation interface mark or operation interface mark with safeguard object identity combination presence duration exceed should With reference to duration, then actively remove;Or server can pass through the operation interface in client receiving maintenance of information personnel The renewal ending request of transmission, is purged to the mark of operation interface, for example, in above-described embodiment one, as maintenance of information person Click on " preservations " send the first operation requests so that server by spatial cache renewal processing after the page for safeguarding object After information updating to database, by body of the mark of the mark of the operation interface in spatial cache or operation interface with safeguarding object The combination of part mark is removed.
So that the maintenance object in operation interface is multiple books as an example, after choosing the books for needing to update processing, it will open Mark of the time point of operation interface as operation interface, made with the combination of the identity of the mark of operation interface and the books For the mark of the books, the mark is defined as " key ", then in JAVA language, server can take following manner to obtain Key, String key=System.currentTimeMillis ()+" _ "+bookid;Grasped when server returns to client Make a sound seasonable, key is arranged to hide field, in service end webpage(Java Server Page, hereinafter referred to as JSP)It can adopt Following code is taken to realize:
< form action=" xxxx " >
< input type=" hidden " name=" key " value=" < %key% > " >
< input type=" text " name=" bookName " value=" < %bookName% > " >
……
</form >
Fig. 2 is the flow chart that page data of the present invention updates processing method embodiment two, and the executive agent of the present embodiment is Client.Specifically, the present embodiment comprises the following steps:
201st, the first operation requests are sent to server by operation interface, included in the first operation requests in operation interface First page fresh information and operation interface mark.
Client operates to different operating interface, is sent by each operation interface to server and carries corresponding behaviour Make the first operation requests of the first page fresh information at interface and the mark of corresponding operation interface.
202nd, the first operation response that the reception server is sent, the mark of operation interface is included in the first operation response.
Server sends the first operation after being responded to the first operation requests, to client and responded, and server receives This includes the first operation response of the mark of operation interface.
203rd, the mark of operation interface is parsed from the first operation response.
Due to client open operation interface may have it is multiple.Therefore, when client receives the of server transmission After one operation response, the first operation response is parsed, the mark of operation interface is parsed, according to operation circle parsed The mark in face determines specific operation interface, and the response message of the first operation response is opened up in the operation interface determined Show so that maintenance of information person operates.For example, if the first operation requests are to the maintenance object in operation interface in client First page be updated processing after, click on " next step " and enter lower one page to update the second page of the processing maintenance object Information triggering, the first operation response carries the parent page information in second page, then client is shown in the operation interface The information of second page is handled for client renewal;If the first operation requests are to the maintenance object in operation interface in client First page be updated processing after, click on " preservations " triggering, then first operation response for information updating processing successfully Response message, client can be now set to terminate the updating maintenance of the operation interface.
Page data provided in an embodiment of the present invention updates processing method, and the operation interface in client is sent to server Include the first page fresh information and the first operation requests of the mark of operation interface in the operation interface so that server is adopted With first page fresh information, processing is updated to the page corresponding with the mark of operation interface in spatial cache.The present invention In embodiment, because each operation interface has mark that is unique, indicating the operation interface, when the maintenance object in operation interface When comparing more, further, each safeguard that object can use mark and the identity of the maintenance object of operation interface Combination uniquely indicate, client to safeguard object carry out paging substep operating process in, will be produced in each step Average information by being buffered in shared spatial cache with the mark that is identified as of operation interface, each operation circle in spatial cache The data in face are separate, even if maintenance of information personnel safeguard that object operates by different operating interface to same, also not The problem of data cover can occur.
Further, in above-described embodiment two, client sends the first operation requests by operation interface to server, the , need to also be from server before the mark that the first page fresh information and operation interface in operation interface are included in one operation requests Locate request and generate corresponding operation interface mark for the operation interface, for direct in subsequent page data renewal processing procedure Use the mark of the operation interface.Specifically, client sends the second operation requests, the second behaviour by operation interface to server Making request instruction needs to be updated operation interface processing;The second operation response that the reception server is sent, the second operation ring Should the middle mark for carrying window interface.
In general, client is after operation interface is first switched on, if the maintenance object in the operation interface it is unique or Small number, then the second operation requests are sent to server by the operation interface, ask to be updated the user interface Processing;If the maintenance object in the operation interface is more, choose after the object that needs safeguard again by the operation interface to Server sends the second operation requests, and processing is now updated to the user interface and is referred specifically to a certain in the user interface It is individual to safeguard that object is updated processing.Server finds that the operation interface is not corresponding after second operation requests are received Mark, then be the mark of operation interface generation operation interface, and the mark of the operation interface is carried and rung in the second operation Client is sent in answering, client receives the second operation response.
Fig. 3 is the signaling diagram that page data of the present invention updates processing method embodiment three, and the present embodiment is with user interface Specially the window of browser and object is safeguarded comprising multiple, spatial cache is specially session layer(session), to same maintenance Object opens two windows and carries out elaborating technical solution of the present invention exemplified by page data renewal processing, to describe clear rise See, by one of two windows of opening be referred to as change window, window ID A, another is referred to as reference window Mouthful, window ID B.Specifically, the present embodiment comprises the following steps:
301st, maintenance of information person opens modification window, and selection needs to update the object of processing and clicks on modification;
302nd, the second operation requests are sent to server by changing window, request needs to enter the first page for changing window Row renewal is handled, and is specially updated processing to the first page for safeguarding object chosen in modification window.
303rd, server obtains the newest page info of first page from database.
304th, server is modification window generation mark A, by window ID A, the newest page info of first page and correspondingly Relation is stored into Session.
305th, server sends the second operation to client and responded, and the newest page letter of first page is carried in operation response The mark A of breath and modification window.
306th, client shows first page information according to the newest page info of first page in modification window.
307th, maintenance of information person opens reference windows, and identical is safeguarded object and clicked on " modification " in selection and 301.
308th, the second operation requests are sent to server by reference to window, request needs to enter the first page of reference windows Row renewal is handled, and is specially updated processing to the first page for safeguarding object chosen in reference windows.
309th, server obtains the newest page info of first page from database.
310th, server is reference windows generation mark B, by window ID B, the newest page info of first page and correspondingly Relation is stored into Session.
311st, server sends the second operation to client and responded, and the newest page letter of first page is carried in operation response The mark B of breath and reference windows.
312nd, client shows first page information according to the newest page info of first page in reference windows.
313rd, after maintenance of information person modifies etc. renewal processing to the first page for changing window, click on " next step ", enter Enter lower one page.
314th, client sends the first operation requests by changing window to server, and first operation requests carry modification The mark A of window.
315th, mark A of the server in the first operation requests, determine to change window, to being temporarily stored in Session Modification window information be updated processing and from database obtain second page newest page info.
In the renewal processing procedure, server determines that maintenance of information person is updated to modification window according to mark A Processing, object particularly is safeguarded for which of modification window, can be determined according to the identity ID for safeguarding object, is had Body, reference can be made to prior art, here is omitted.
316th, server sends the first operation to client and responded, and the mark of modification window is carried in the first operation response A and second page newest page info.
317th, after client receives the first operation response, window ID A is parsed, it is determined that modification window, Change the up-to-date information of window displaying second page.
318th, maintenance of information person clicks on " next step " of reference windows, into lower one page of reference windows.
Optionally, in this step, the renewals such as maintenance of information person can also modify to reference windows processing.
319th, client sends the first operation requests by reference to window to server, and first operation requests carry reference The mark B of window.
320th, mark B of the server in the first operation requests, determines reference windows, to being temporarily stored in Session Reference windows first page be updated processing and from database obtain second page newest page info.
321st, server sends the first operation to client and responded, and the mark of reference windows is carried in the first operation response B and second page newest page info.
322nd, after client receives the first operation response, window ID B is parsed, it is determined that reference windows, Reference windows show the up-to-date information of second page.
323rd, after maintenance of information person modifies etc. renewal processing processing to the second page for changing window, click on " preservation ".
It should be noted that each safeguards that object may have a multiple pages of information for storing the maintenance object, in this step Only be to second page be updated processing exemplified by the present invention will be described in detail, however, reality operation in, maintenance of information Member can safeguard to every page, or irregular click " page up ", " lower one page " switch between the different pages, right All pages click on " preservation " after being all updated processing.
324th, client sends renewal processing ending request to by changing window to server, and the renewal processing terminates please Seek the mark A for carrying modification window.
325th, server receives renewal processing ending request, according to mark A, it is determined that window is changed, by Session In it is corresponding modification window information be updated.
326th, the modification window A cached in the Session after server handles renewal all pages of information updating is extremely Database.
327th, server is returned to client and successfully instructed, and this successfully instructs the mark A for carrying modification window.
328th, after client receives successfully instruction, mark A is parsed, it is determined that modification window, then in modification window Displaying renewal handles successful information.
It should be noted that after above-mentioned steps 326, server can also be by the modification window being temporarily stored into Session The combination of the identity for identifying to safeguarding object of mark and modification window and related information, such as first page, second Information of page etc. is removed;Or in page data updates processing procedure, exceed necessarily when not carrying out operation to modification window After duration, the information of the modification window correlation in Session can be actively removed.
Fig. 4 is the structural representation of server example one of the present invention.As shown in figure 4, the server that the present embodiment provides The each step for the method applied to server that any embodiment of the present invention provides can be specifically realized, specific implementation process exists This is repeated no more.The server that the present embodiment provides specifically includes:
Receiving module 11, the first operation requests that the operation interface for receiving in client is sent, the first operation Comprising the first page fresh information and the mark of operation interface in operation interface in request, optionally, operation interface is to browse Device window or tab;
Processing module 12, for according to first page fresh information, to corresponding with the mark of operation interface in spatial cache The page be updated processing, optionally, spatial cache is session layer, information record program or distributed memory target cache system System.
Server provided in an embodiment of the present invention, the including for operation interface transmission that server is received in client should First operation requests of the mark of first page fresh information and operation interface in operation interface, updated and believed according to first page Breath, processing is updated to the page corresponding with the mark of operation interface in spatial cache.In the embodiment of the present invention, due to each Operation interface has mark that is unique, indicating the operation interface, when the maintenance object in operation interface is more, enters one Step, each safeguard that object can uniquely be indicated with the mark and the combination of the identity of the maintenance object of operation interface, make Client is obtained in the operating process for carrying out paging substep to safeguarding object, caused average information in each step is passed through Shared spatial cache is buffered in the mark that is identified as of operation interface, the data of each operation interface are mutually only in spatial cache It is vertical, even if client safeguards that object operates by different operating interface to same, the problem of data cover will not also occur.
Fig. 5 is the structural representation of server example two of the present invention, as shown in figure 5, the server of the present embodiment is in Fig. 4 On the basis of the structure of shown server, it can also include:
First sending module 13, responded for sending the first operation to client, operation circle is included in the first operation response The mark in face.
Further, the second operation that the operation interface that receiving module 11 is additionally operable to receive in client is sent please Ask, the instruction of the second operation requests needs to be updated operation interface processing;
Processing module 12 is additionally operable to generate the mark of operation interface;
Further, then refer to Fig. 4, the server that the present embodiment provides also includes the second sending module 14, for Client returns to the second operation response, and the mark of window interface is carried in the second operation response.
Further, processing module 12, it is specifically used for:According to the opening time of operation interface, the mark of operation interface is generated Know;Or the mark of random generation operation interface.
Further, the mark of operation interface is carried in operation responds in the form of hiding field.
Further, then Fig. 4 is refer to, the server that the present embodiment provides also includes:
Module 15 is removed, for according to preset strategy, being purged to the mark of operation interface;Or in receiving module When 11 renewals for receiving the operation interface transmission in client handle ending request, the mark of operation interface is carried out clearly Remove.
Further, module 15 is removed to be specifically used for according to timing Prune Policies or maximum mark number restriction strategy, it is right The mark of operation interface is purged.
Fig. 6 is the structural representation of client of the present invention.As shown in fig. 6, the client that the present embodiment provides specifically can be with The each step for the method applied to client that any embodiment of the present invention provides is realized, specific implementation process is no longer gone to live in the household of one's in-laws on getting married herein State.The client that the present embodiment provides specifically includes:
Sending module 21, for sending the first operation requests to server by operation interface, wrapped in the first operation requests Containing the first page fresh information and the mark of operation interface in operation interface;
Receiving module 22, the first operation response sent for the reception server, operation circle is included in the first operation response The mark in face;
Parsing module 23, for parsing the mark of operation interface from the first operation response.
Client provided in an embodiment of the present invention, by being sent to server comprising the first page in the operation interface more First operation requests of the mark of fresh information and operation interface so that server uses first page fresh information, empty to caching Between in the page corresponding with the mark of operation interface be updated processing.In the embodiment of the present invention, because each operation interface has Uniquely, the mark of the operation interface is indicated, when the maintenance object in operation interface is more, further, each Safeguard that object can uniquely indicate that client is to dimension with the mark and the combination of the identity of the maintenance object of operation interface Protect in the operating process that object carries out paging substep, caused average information in each step is passed through with the mark of operation interface Know and be buffered in shared spatial cache to identify, the data of each operation interface are separate in spatial cache, even if information is tieed up Shield personnel safeguard that object operates by different operating interface to same, the problem of data cover will not also occur.
Further, sending module 21 is additionally operable to:Second operation requests, the second behaviour are sent to server by operation interface Need to be updated operation interface processing as request;
Receiving module 22 is additionally operable to the second operation response of the reception server transmission, and window circle is carried in the second operation response The mark in face.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (22)

1. a kind of page data updates processing method, it is characterised in that including:
The first operation requests that the operation interface in client is sent are received, the behaviour is included in first operation requests Make the mark of the first page fresh information and the operation interface on interface, first operation requests are the client pair The first page of the operation interface is sent after being updated processing;
According to the first page fresh information, the page corresponding with the mark of the operation interface in spatial cache is carried out more New processing, so that the parent page information updating of the page corresponding with the mark of the operation interface to be updated as the first page Information.
2. according to the method for claim 1, it is characterised in that it is described according to the first page fresh information, to caching After the page corresponding with the mark of the operation interface is updated processing in space, in addition to:
The first operation response is sent to the client, the mark of the operation interface is included in the first operation response.
3. method according to claim 1 or 2, it is characterised in that operation interface hair of the reception in client Before the first operation requests sent, in addition to:
The second operation requests that the operation interface in the client is sent are received, the second operation requests instruction needs Processing is updated to the operation interface;
Generate the mark of the operation interface;
The second operation response is returned to client, the mark of window interface is carried in the second operation response.
4. according to the method for claim 3, it is characterised in that the mark of the generation operation interface, including:
According to the opening time of the operation interface, the mark of the operation interface is generated;Or
The mark of the operation interface is generated at random.
5. the method according to claim 2 or 4, it is characterised in that the mark of the operation interface is using hiding field Form is carried in the operation response.
6. according to the method any one of claim 1,2,4, it is characterised in that described to be updated according to the first page Information, after the page corresponding with the mark of the operation interface is updated processing in spatial cache, in addition to:
According to preset strategy, the mark of the operation interface is purged;Or
The renewal processing ending request that the operation interface in the client is sent is received, to the mark of the operation interface It is purged.
7. according to the method for claim 6, it is characterised in that it is described according to preset strategy, to the mark of the operation interface Knowledge is purged, including:
According to timing Prune Policies or maximum mark number restriction strategy, the mark of the operation interface is purged.
8. according to the method any one of claim 1,2,4,7, it is characterised in that the operation interface is browser window Mouth or tab.
9. according to the method any one of claim 1,2,4,7, it is characterised in that the spatial cache be session layer, Information record program or distributed memory target cache system.
10. a kind of page data updates processing method, it is characterised in that including:
After being updated processing to the first page of operation interface, sending the first operation to server by the operation interface please Ask, the first page fresh information and the mark of the operation interface in the operation interface are included in first operation requests Know, so that the parent page information updating of the page corresponding with the mark of the operation interface is described first by the server Renewal of the page information;
The first operation response that the server is sent is received, the mark of the operation interface is included in the first operation response Know;
The mark of the operation interface is parsed from the described first operation response.
11. according to the method for claim 10, it is characterised in that the first page to operation interface is updated place Reason, including:
Second operation requests are sent to the server by the operation interface, second operation requests are needed to the behaviour Processing is updated as interface;
The second operation response that the server is sent is received, the mark of window interface is carried in the second operation response.
A kind of 12. server, it is characterised in that including:
Receiving module, the first operation requests that the operation interface for receiving in client is sent, first operation please Ask comprising the first page fresh information and the mark of the operation interface in the operation interface, first operation requests It is updated what is sent after processing to the first page of the operation interface for the client;
Processing module, for according to the first page fresh information, to the mark pair in spatial cache with the operation interface The page answered is updated processing, using by the parent page information updating of the page corresponding with the mark of the operation interface as institute State first page fresh information.
13. server according to claim 12, it is characterised in that the server also includes:
First sending module, responded for sending the first operation to the client, comprising described in the first operation response The mark of operation interface.
14. the server according to claim 12 or 13, it is characterised in that the receiving module is additionally operable to:
The second operation requests that the operation interface in the client is sent are received, the second operation requests instruction needs Processing is updated to the operation interface;
The processing module is additionally operable to generate the mark of the operation interface;
The server also includes the second sending module, is responded for returning to the second operation to client, and second operation rings Should the middle mark for carrying window interface.
15. server according to claim 14, it is characterised in that the processing module, be specifically used for:
According to the opening time of the operation interface, the mark of the operation interface is generated;Or
The mark of the operation interface is generated at random.
16. the server according to claim 13 or 15, it is characterised in that the mark of the operation interface is using hiding word The form of section is carried in the operation response.
17. according to the server any one of claim 12,13,15, it is characterised in that the server also includes:
Module is removed, for according to preset strategy, being purged to the mark of the operation interface;Or in the reception mould When block receives the renewal processing ending request that the operation interface in the client is sent, to the mark of the operation interface Knowledge is purged.
18. server according to claim 17, it is characterised in that the removing module is specifically used for:
According to timing Prune Policies or maximum mark number restriction strategy, the mark of the operation interface is purged.
19. according to the server any one of claim 12,13,15,18, it is characterised in that the operation interface is Browser window or tab.
20. according to the server any one of claim 12,13,15,18, it is characterised in that the spatial cache is Session layer, information record program or distributed memory target cache system.
A kind of 21. client, it is characterised in that including:
Sending module, after being updated processing to the first page of operation interface, by the operation interface to server The first operation requests are sent, comprising the first page fresh information in the operation interface and described in first operation requests The mark of operation interface so that the server by the parent page information of the page corresponding with the mark of the operation interface more It is newly the first page fresh information;
Receiving module, the first operation response sent for receiving the server, comprising described in the first operation response The mark of operation interface;
Parsing module, for parsing the mark of the operation interface from the described first operation response.
22. client according to claim 21, it is characterised in that the sending module, be used for:
Second operation requests are sent to the server by operation interface, second operation requests are needed to operation circle Face is updated processing;
The receiving module is additionally operable to receive the second operation response that the server is sent, and is carried in the second operation response The mark of window interface.
CN201310134335.8A 2013-04-17 2013-04-17 Page data renewal processing method, client and server Active CN103198142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310134335.8A CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310134335.8A CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Publications (2)

Publication Number Publication Date
CN103198142A CN103198142A (en) 2013-07-10
CN103198142B true CN103198142B (en) 2018-01-02

Family

ID=48720699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310134335.8A Active CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Country Status (1)

Country Link
CN (1) CN103198142B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704106B (en) * 2014-11-27 2019-11-12 腾讯科技(深圳)有限公司 A kind of visualization IVR implementation method and mobile terminal
CN104378244B (en) * 2014-12-08 2018-10-12 上海斐讯数据通信技术有限公司 Exchanger management system based on web page and method
CN105847217B (en) * 2015-01-12 2019-09-06 阿里巴巴集团控股有限公司 The method and its system of concurrent multi-service session
CN106155920B (en) * 2015-03-30 2019-05-07 阿里巴巴集团控股有限公司 Data managing method and device
CN106936935B (en) * 2017-04-28 2021-02-23 新华三技术有限公司 Remote control method and device
WO2018232758A1 (en) * 2017-06-23 2018-12-27 华为技术有限公司 Rcs communication method and device
CN107766155A (en) * 2017-10-23 2018-03-06 北京京东尚科信息技术有限公司 Object processing method and system
CN112817977A (en) * 2021-01-28 2021-05-18 山东浪潮通软信息科技有限公司 Method for displaying and managing SaaS application by mobile terminal
CN114327707A (en) * 2021-12-20 2022-04-12 凌云光技术股份有限公司 User interface refreshing method
CN114745305B (en) * 2022-06-15 2022-09-09 中邮消费金融有限公司 Dynamic interaction method and system based on user behavior recognition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101296255A (en) * 2008-06-30 2008-10-29 腾讯科技(深圳)有限公司 Web page browsing method, system, proxy server and mobile phone browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364461A (en) * 2011-06-30 2012-02-29 广州市动景计算机科技有限公司 Page content data acquisition method and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101296255A (en) * 2008-06-30 2008-10-29 腾讯科技(深圳)有限公司 Web page browsing method, system, proxy server and mobile phone browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously

Also Published As

Publication number Publication date
CN103198142A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103198142B (en) Page data renewal processing method, client and server
CN103795745B (en) The monitoring method and system of a kind of intelligent mobile terminal
Hogan Analyzing social networks via the Internet
DE102017121758A1 (en) Intelligent assistant for repeated actions
CN107220142A (en) Perform the method and device of data recovery operation
CN105210076B (en) Elastic, recoverable dynamic device identification
CN109508422A (en) The height of multithreading intelligent scheduling is hidden crawler system
CN108171603A (en) A kind of integral management system based on block chain
CN106209948A (en) A kind of data push method and device
CN104796326A (en) Group creating method, data loading method and device for enterprise IM
CN110147684A (en) For realizing the method and apparatus of block chain data-privacy protection
DE102008016197A1 (en) Identify an application user as the source of a database activity
CN109885749A (en) A kind of anti-grasping system of webpage information data
CN109309728A (en) A kind of data processing method and relevant apparatus
CN106789868A (en) A kind of website user's Activity recognition and managing and control system
CN104811506A (en) Grease storage remote supervision system and method based on wireless sensor network
CN108023940A (en) Information updating method, device, server and readable storage medium storing program for executing
CN104318353B (en) High-end electronic case history device and management system
DE112022000280T5 (en) Identity authority
CN109885790A (en) The method and apparatus for obtaining satisfaction evaluation data
CN105978934B (en) List sharing method and server
CN105530244A (en) Method for controlling intelligent device by main control device and server
US8117181B2 (en) System for notification of group membership changes in directory service
CN106845270A (en) A kind of seamless browsing method and device
CN106681760A (en) Transaction processing method and device based on client engineering project management system

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