Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Processing method and device for data in webpage

A processing method and webpage technology, applied in data processing applications, office automation, computing, etc., can solve problems such as multiple resources, server occupation, and slow data interaction, and achieve the effects of reducing interaction frequency, increasing cache speed, and increasing speed

Active Publication Date: 2014-06-18
XIAOMI INC
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present disclosure provide a method and device for processing data in a web page, which is used to overcome the problems in the related art that the browser can only obtain data in an intermediate state from the server, occupying more resources of the server, and slow data interaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processing method and device for data in webpage
  • Processing method and device for data in webpage
  • Processing method and device for data in webpage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0112] Taking the caching and editing operation information as an example when the browser supports local caching technology, the method for processing data in the webpage in the embodiment of the present disclosure will be described in detail, as follows: figure 2 As shown, the method includes:

[0113] In step S201, it is detected whether the browser supports local caching technology.

[0114] In step S202, when the browser supports the local caching technology, the editing operation performed on the data in the webpage is monitored to obtain editing operation information.

[0115] In step S203, the editing operation information is cached locally.

[0116] The embodiments of the present disclosure realize whether the browser supports the local caching technology, so as to lay a solid foundation for caching the editing operation information, and facilitate caching the editing operation information in the local cache.

Embodiment 2

[0118] Taking the editing operation information cached locally to be sent to the server when the information amount of the editing operation information is equal to or greater than the preset threshold as an example, the method for processing data in the web page in the embodiment of the present disclosure is described in detail, as follows: image 3 As shown, the method includes:

[0119] In step S301, the editing operation performed on the data in the web page is monitored to obtain editing operation information.

[0120] In step S302, the editing operation information is cached locally.

[0121] In step S303, it is judged whether the amount of editing operation information cached locally is equal to or greater than a preset threshold, if yes, execute step S304, otherwise end.

[0122] In one embodiment, a timer is used to periodically check whether the editing operation information in the local cache is equal to or greater than a preset threshold.

[0123] Wherein, the pr...

Embodiment 3

[0128] Taking the corresponding caching of the operation identification information and the editing operation identification to the local as an example, the method for processing data in the web page in the embodiment of the present disclosure is described in detail, as follows: Figure 4 As shown, the method includes:

[0129] In step S401, the editing operation performed on the data in the web page is monitored to obtain editing operation information.

[0130] In step S402, an edit operation identifier corresponding to the edit operation information is generated.

[0131] In an embodiment, the edit operation identifier may include: the time of the edit operation or the sequence number of the edit operation, and the like.

[0132] In step S403, the editing operation information and the editing operation identifier are cached locally.

[0133] The embodiments of the present disclosure differentiate editing operations by using editing operation identifiers, so as to facilitat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a processing method and device for data in a webpage. The method comprises the steps of monitoring an editing operation executed on the data in the webpage, obtaining information of the editing operation, and locally caching the information of the editing operation. According to the method, compared with the mode that the information of the editing operation is stored into a server, the mode that the information of the editing operation is locally cached to be stored can improve the caching speed. When a request for reading the information of the editing operation is received, the requested information of the editing operation can be read from a local cache, and therefore the speed for reading the information of the editing operation is improved. Therefore, the information of the editing operation is cached to the local cache, interaction between a terminal and the server is reduced, and resource losses of the server are reduced. In addition, user information leakage is prevented by emptying the information of the editing operation in the local cache, and the aim of protecting user information is achieved.

Description

technical field [0001] The present disclosure relates to the technical field of computers and electronic equipment, in particular to a method and device for processing data in webpages. Background technique [0002] With the development of the Internet industry, the form of web pages is also constantly changing with the needs of users. During this process, the interaction between the client and the server becomes more and more frequent, and there are many web applications involving user operation records. For example, the draft box of mail, or the time machine of user data, etc. The characteristic of this type of web application is that it will record the whole process of the user's data operation on the server side, and write multiple data copies on the server side, and the basis for each data copy is the user's operation behavior on the data in the web page. When users need to restore data to an intermediate state, they need to read the corresponding data copy saved on th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q10/10
Inventor 任远江岱霖漆昱恒
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products