CN102255879A - Method and system for realizing local cache of uncompleted input content by user - Google Patents
Method and system for realizing local cache of uncompleted input content by user Download PDFInfo
- Publication number
- CN102255879A CN102255879A CN2011100084855A CN201110008485A CN102255879A CN 102255879 A CN102255879 A CN 102255879A CN 2011100084855 A CN2011100084855 A CN 2011100084855A CN 201110008485 A CN201110008485 A CN 201110008485A CN 102255879 A CN102255879 A CN 102255879A
- Authority
- CN
- China
- Prior art keywords
- user
- input content
- uncompleted
- client
- local cache
- 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.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a system for realizing local cache of an uncompleted input content by a user. The method comprises the following steps that: S1, when a user leaves or refreshes a page, a client detects whether there is an uncompleted input content by the user among all target data sources of a current page; S2, if there is an uncompleted input content by the user in the target data sources, the client stores the input content to local cache; S3, when the user accesses the page again, the client reads the uncompleted input content by the user in the local cache; S4, the client loads the read uncompleted input content by the user to a target data source corresponding to the current page. According to the invention, when a user closes or refreshes a page, an uncompleted input content by the user can be automatically stored to local cache; when the user accesses the page next time, the input content can be loaded automatically and displayed as well as not be lost; therefore, an input operation of the user can be simplified and thus an input operation speed of the user can be improved.
Description
Technical field
The present invention relates to the method and system of the uncompleted input content of a kind of user of realization local cache, belong to network communication field.
Background technology
Local cache is to be used for the data of client stores from can frequently reading after server loads, as picture file, CSS file, JavaScript file etc.By the local cache function with the lasting data in the session (session) or the storage of non-persistentization, make when the user enters current sessions once more, do not need to load once more repeating data, improve the display efficiency and the network connection speed of data greatly, also greatly reduced the read-write pressure of server.
In the prior art, client is stored the page that the user asked recently, when the user asks this page once more, just reads page info and show from local cache, so just can quicken the reading of the page.But, during the page that client stores user asked recently, a buffer memory current page, the uncompleted interaction content of user's input is stored in the page that can not ask recently the user; When the user asked to visit this page once more, the content of input can be lost, and the user need re-enter, and had increased the complexity of user's operation, caused user experience bad.The uncompleted input content of user can be contents such as chat message, daily record, short message.
Summary of the invention
The objective of the invention is to, the method and system of the uncompleted input content of a kind of user of realization local cache are provided, when the user closes or refresh the page, it can be stored the uncompleted input content of user automatically, when treating this page of user's visit next time, the automatic loaded and displayed of input content can not lost, can simplify user's input operation, improve user's input operation speed.
For solving the problems of the technologies described above, the present invention adopts following technical scheme: the method for the uncompleted input content of a kind of user of realization local cache may further comprise the steps:
S1, when the user left or refresh the page, client detected in all target data source of current page whether have the uncompleted input content of user;
S2, when having the uncompleted input content of user in the target data source, client should be imported content stores in local cache;
S3, when the user visited this page once more, client read the uncompleted input content of user in the local cache;
S4, client with the uncompleted input load content of the user who reads in the target data source of current page correspondence.
Described target data source mainly refers to the information input frame in the page.Input frames such as for example, user's microblogging issue, chat message transmission, record.The uncompleted input content of user refers to that mainly the user does not finish the operation to target data source, and for example the user does not finish the input of content or do not have click on content to submit to.
In aforesaid a kind of method that realizes the uncompleted input content of user local cache, among the described step S1, whether the character length in the client query target data source is 0; If character length is not 0, then there is the uncompleted input content of user in this target data source.
Among the described step S2, client generates corresponding local storage file according to unique identification information, and promptly local storage file name is consistent with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and the pairing target data source of the uncompleted input content of current page user.
Among the described step S3, the local storage file corresponding in the client query local cache with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and all target data source of current page.
The uncompleted input content of user that client will be loaded in the target data source of current page correspondence shows.
Realize a kind of system that realizes the uncompleted input content of user local cache of preceding method, it comprises:
Detection module is used for when the user leaves or refresh the page, and client detects in all target data source of current page whether have the uncompleted input content of user;
Memory module, be used for client with the uncompleted input content stores of user at local cache;
Read module is used for when the user visits this page once more, and client reads the uncompleted input content of user in the local cache;
Load-on module is used for client with the target data source of the uncompleted input load content of the user who reads to the current page correspondence.
Described target data source mainly refers to the information input frame in the page.Input frames such as for example, user's microblogging issue, chat message transmission, record.The uncompleted input content of user refers to that mainly the user does not finish the operation to target data source, and for example the user does not finish the input of content or do not have click on content to submit to.
Described memory module generates corresponding local storage file according to unique identification information, and promptly local storage file name is consistent with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and the pairing target data source of the uncompleted input content of current page user.
The local storage file corresponding in the described read module inquiry local cache with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and all target data source of current page.
The uncompleted input content of user that load-on module will be loaded in the target data source of current page correspondence shows.
Compared with prior art, when the user closes or refresh the page, the present invention can detect in the target data source of user's current page whether have uncompleted input content, utilize local cache that the uncompleted input content of user is stored temporarily, when treating that the user enters this page once more, the uncompleted input content of all users also can be reloaded demonstration in the page, and can not lose, the user can continue to finish input, simplified user's input operation, make user's input operation speed improve 20%, make user's interactive experience better, attracted more user to add the website.
Description of drawings
Fig. 1 is the structural representation of a kind of embodiment of the present invention;
Fig. 2 is the workflow diagram of a kind of embodiment of the present invention.
Reference numeral: 1-detection module, 2-memory module, 3-read module, 4-load-on module.
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Embodiment
Embodiments of the invention: a kind of method that realizes the uncompleted input content of user local cache may further comprise the steps:
S1, when the user left or refresh the page, client detected in all target data source of current page whether have the uncompleted input content of user;
S2, when having the uncompleted input content of user in the target data source, client should be imported content stores in local cache;
S3, when the user visited this page once more, client read the uncompleted input content of user in the local cache;
S4, client with the uncompleted input load content of the user who reads in the target data source of current page correspondence.
Described target data source mainly refers to the information input frame in the page.Input frames such as for example, user's microblogging issue, chat message transmission, record.The uncompleted input content of user refers to that mainly the user does not finish the operation to target data source, and for example the user does not finish the input of content or do not have click on content to submit to.
Among the described step S1, whether the character length in the client query target data source is 0; If character length is not 0, then there is the uncompleted input content of user in this target data source.
Among the described step S2, client generates corresponding local storage file according to unique identification information, and promptly local storage file name is consistent with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and the pairing target data source of the uncompleted input content of current page user.
Among the described step S3, the local storage file corresponding in the client query local cache with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and all target data source of current page.
The uncompleted input content of user that client will be loaded in the target data source of current page correspondence shows.
Realize a kind of system that realizes the uncompleted input content of user local cache of preceding method, structural representation as shown in Figure 1, it comprises:
Read module 3 is used for when the user visits this page once more, and client reads the uncompleted input content of user in the local cache;
Load-on module 4 is used for client with the target data source of the uncompleted input load content of the user who reads to the current page correspondence.
Described target data source mainly refers to the information input frame in the page.Input frames such as for example, user's microblogging issue, chat message transmission, record.The uncompleted input content of user refers to that mainly the user does not finish the operation to target data source, and for example the user does not finish the input of content or do not have click on content to submit to.
Described memory module 2 generates corresponding local storage file according to unique identification information, and promptly local storage file name is consistent with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and the pairing target data source of the uncompleted input content of current page user.
The local storage file corresponding in the described read module 3 inquiry local caches with unique identification information.Described unique identification information is the UID combination generation of client according to user UID and all target data source of current page.
The uncompleted input content of user that load-on module 4 will be loaded in the target data source of current page correspondence shows.
The workflow of a kind of embodiment of the present invention: (workflow diagram as shown in Figure 2)
S1, when the user left or refresh the page, client detected in all target data source of current page whether have the uncompleted input content of user;
S2, when having the uncompleted input content of user in the target data source, client should be imported content stores in local cache;
S3, when the user visited this page once more, client read the uncompleted input content of user in the local cache;
S4, client with the uncompleted input load content of the user who reads in the target data source of current page correspondence.
The example explanation: " Zhang San " signs in to the microblogging issue microblogging of oneself, when his input characters, has good friend " Luo Si " to send new information, and " Zhang San " thinks to check earlier the new information of " Luo Si ", then writes microblogging again.When " Zhang San " switched current page because of the message of checking good friend " Luo Si ", detection module 1 detected " Zhang San " current page automatically and whether has its uncompleted microblogging content.Detection module 1 detects " Zhang San " current page and has uncompleted microblogging content, be that character length in the target data source is not 0, memory module 2 generates unique identification information according to the UID of " Zhang San " and the UID combination of microblogging issue input frame, generate corresponding local storage file according to unique identification information again, memory module 2 with " Zhang San " uncompleted microblogging content stores in this this locality storage file." Zhang San " checked the message of " Luo Si ", return the microblogging issue page, read module 3 generates several unique identification informations according to the UID of " Zhang San " and the UID combination of all information input frames of the microblogging issue page, and read content in the local storage file corresponding in the local cache with these unique identification informations, load-on module 4 with " Zhang San " uncompleted microblogging load content in microblogging issue input frame and show.
Claims (3)
1. a method that realizes the uncompleted input content of user local cache is characterized in that, may further comprise the steps:
S1, when the user left or refresh the page, client detected in all target data source of current page whether have the uncompleted input content of user;
S2, when having the uncompleted input content of user in the target data source, client should be imported content stores in local cache;
S3, when the user visited this page once more, client read the uncompleted input content of user in the local cache;
S4, client with the uncompleted input load content of the user who reads in the target data source of current page correspondence.
2. a kind of method that realizes the uncompleted input content of user local cache according to claim 1 is characterized in that: among the described step S1, whether the character length in the client query target data source is 0.
3. realize a kind of system that realizes the uncompleted input content of user local cache of the described method of claim 1~2, it is characterized in that, comprising:
Detection module (1) is used for when the user leaves or refresh the page, and client detects in all target data source of current page whether have the uncompleted input content of user;
Memory module (2), be used for client with the uncompleted input content stores of user at local cache;
Read module (3) is used for when the user visits this page once more, and client reads the uncompleted input content of user in the local cache;
Load-on module (4) is used for client with the target data source of the uncompleted input load content of the user who reads to the current page correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100084855A CN102255879A (en) | 2011-01-14 | 2011-01-14 | Method and system for realizing local cache of uncompleted input content by user |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100084855A CN102255879A (en) | 2011-01-14 | 2011-01-14 | Method and system for realizing local cache of uncompleted input content by user |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102255879A true CN102255879A (en) | 2011-11-23 |
Family
ID=44982879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100084855A Pending CN102255879A (en) | 2011-01-14 | 2011-01-14 | Method and system for realizing local cache of uncompleted input content by user |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102255879A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103207818A (en) * | 2013-04-23 | 2013-07-17 | 互动在线(北京)科技有限公司 | Vocabulary entry edition backup method based on draft box and draft box system |
WO2014169768A1 (en) * | 2013-04-19 | 2014-10-23 | Tencent Technology (Shenzhen) Company Limited | Method, system and front-end device for posting user generated content |
CN107483452A (en) * | 2017-08-25 | 2017-12-15 | 北京元心科技有限公司 | Quick registration method and device |
CN107770045A (en) * | 2017-09-29 | 2018-03-06 | 网易乐得科技有限公司 | A kind of message editing method, apparatus and medium |
CN107818101A (en) * | 2016-09-12 | 2018-03-20 | 北京新唐思创教育科技有限公司 | The method and its device of page jump |
CN110990080A (en) * | 2019-12-03 | 2020-04-10 | 北京三快在线科技有限公司 | Page retirement rate determination method and device, computer equipment and storage medium |
CN113590052A (en) * | 2021-09-29 | 2021-11-02 | 深圳市信润富联数字科技有限公司 | Information storage method, device, equipment and storage medium |
CN115118762A (en) * | 2022-05-19 | 2022-09-27 | 北京京东乾石科技有限公司 | Session processing method, client and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070198924A1 (en) * | 1999-03-02 | 2007-08-23 | Hiroshi Koike | Dynamic web page generation method and system |
CN101883168A (en) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | Method for efficiently managing cache files at mobile phone client |
CN101917490A (en) * | 2010-09-16 | 2010-12-15 | 北京开心人信息技术有限公司 | Method and system for reading cache data |
CN101937467A (en) * | 2010-09-17 | 2011-01-05 | 北京开心人信息技术有限公司 | High-efficiency caching method and system of server |
-
2011
- 2011-01-14 CN CN2011100084855A patent/CN102255879A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070198924A1 (en) * | 1999-03-02 | 2007-08-23 | Hiroshi Koike | Dynamic web page generation method and system |
CN101883168A (en) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | Method for efficiently managing cache files at mobile phone client |
CN101917490A (en) * | 2010-09-16 | 2010-12-15 | 北京开心人信息技术有限公司 | Method and system for reading cache data |
CN101937467A (en) * | 2010-09-17 | 2011-01-05 | 北京开心人信息技术有限公司 | High-efficiency caching method and system of server |
Non-Patent Citations (1)
Title |
---|
飘零雪: "在线填写表单自动存盘当机也不怕", 《电脑迷》, 31 December 2010 (2010-12-31) * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014169768A1 (en) * | 2013-04-19 | 2014-10-23 | Tencent Technology (Shenzhen) Company Limited | Method, system and front-end device for posting user generated content |
CN103207818A (en) * | 2013-04-23 | 2013-07-17 | 互动在线(北京)科技有限公司 | Vocabulary entry edition backup method based on draft box and draft box system |
CN103207818B (en) * | 2013-04-23 | 2016-01-13 | 互动在线(北京)科技有限公司 | A kind of article editing backup method based on draft and draft system |
CN107818101A (en) * | 2016-09-12 | 2018-03-20 | 北京新唐思创教育科技有限公司 | The method and its device of page jump |
CN107483452A (en) * | 2017-08-25 | 2017-12-15 | 北京元心科技有限公司 | Quick registration method and device |
CN107770045A (en) * | 2017-09-29 | 2018-03-06 | 网易乐得科技有限公司 | A kind of message editing method, apparatus and medium |
CN110990080A (en) * | 2019-12-03 | 2020-04-10 | 北京三快在线科技有限公司 | Page retirement rate determination method and device, computer equipment and storage medium |
CN113590052A (en) * | 2021-09-29 | 2021-11-02 | 深圳市信润富联数字科技有限公司 | Information storage method, device, equipment and storage medium |
CN113590052B (en) * | 2021-09-29 | 2022-01-07 | 深圳市信润富联数字科技有限公司 | Information storage method, device, equipment and storage medium |
CN115118762A (en) * | 2022-05-19 | 2022-09-27 | 北京京东乾石科技有限公司 | Session processing method, client and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102255879A (en) | Method and system for realizing local cache of uncompleted input content by user | |
US10769663B2 (en) | Dynamic recommendation in geo-social networking system | |
CN108829885A (en) | Page generation method, device, server, electronic equipment and storage medium | |
US20110041168A1 (en) | Systems and methods for targeting online advertisements using data derived from social networks | |
US20130044959A1 (en) | Computer-Vision Content Detection for Sponsored Stories | |
KR102138570B1 (en) | Methods and systems for determining use and content of pymk based on value model | |
US20120323647A1 (en) | Analyzing consumer behavior involving use of social networking benefits associated with content | |
US10063662B2 (en) | Method and system for establishing a trust association | |
US20130290510A1 (en) | Systems and methods for rewarding social network users for content | |
US20170024455A1 (en) | Expanding mutually exclusive clusters of users of an online system clustered based on a specified dimension | |
US20160219119A1 (en) | Presenting additional content items to a social networking system user based on receiving an indication of boredom | |
US20150341225A1 (en) | Direct network tracking and marketing tools | |
CN103297291A (en) | Method and system for monitoring website real-time statuses | |
WO2011112725A1 (en) | Systems and methods for generating user entertainment activity profiles | |
CN104063112B (en) | Exchange method between a kind of browser, device, system and browser | |
JP6615189B2 (en) | Determining the prompts for actions to be presented to the user in relation to video data | |
CN103166982A (en) | Sharing method and device of electronic book annotation information | |
US8307101B1 (en) | Generic format for storage and query of web analytics data | |
AU2017335976B2 (en) | Architecture for augmenting video data obtained by a client device with one or more effects during rendering | |
CN104270471B (en) | A kind of method for realizing New function prompting, apparatus and system | |
US10803077B2 (en) | Applying templates to customize presentation of content based on surface type | |
US9021110B2 (en) | Consistent association of a user ID with a user | |
US20240029112A1 (en) | Methods, systems, and media for identifying automatically refreshed advertisements | |
US9503537B1 (en) | Device tracker for user accounts | |
CN102929986A (en) | Bridge page used for mobile advertisement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20111123 |