CN102780718A - Method and system for prompting new message - Google Patents
Method and system for prompting new message Download PDFInfo
- Publication number
- CN102780718A CN102780718A CN2011101200209A CN201110120020A CN102780718A CN 102780718 A CN102780718 A CN 102780718A CN 2011101200209 A CN2011101200209 A CN 2011101200209A CN 201110120020 A CN201110120020 A CN 201110120020A CN 102780718 A CN102780718 A CN 102780718A
- Authority
- CN
- China
- Prior art keywords
- message
- browser
- server
- newly
- increased
- 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 prompting a new message. The method comprises the following steps that a browser asks for newly-added message information from a server; and after receiving the response of the server, the browser updates a webpage prompting message. According to the method disclosed by the invention, a user of the browser is reminded in time when webpage content is updated, so that the user of the browser can know information that the webpage content is updated in time and thus acquires the new webpage information through updating, and therefore the browsing experience of the user can be improved.
Description
Technical field
The present invention relates to the computer website designing technique, refer to the reminding method and the system of new information in a kind of webpage especially.
Background technology
At present, when the web page contents of browser dynamically increased or upgrades, browser client can not obtain prompting, and can only be through behind the manual refreshing page, could make new web page contents add webpage.Undoubtedly, like this, greatly reduce user's viewing experience.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of new information reminding method and system, can when web page contents takes place to upgrade, in time remind browser client, thereby improve user's viewing experience.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of new information reminding method comprises:
Browser is to the information of the newly-increased message of server requests;
After browser receives the response of server, upgrade page information.
This method also comprises: said server stores is also upgraded the newly-increased message number that each logins the message of browser client subscription.
Said browser utilizes the ajax technology to initiate the information of the newly-increased message of described request to server;
The ID ID that comprises the content that is used for the index request in the described request.
The newly-increased message number of the message that each login browser client of said renewal is subscribed to comprises:
Said server wherein, comprises the message count counter for each login browser client maintenance customer information during user profile comprises;
The user of all subscription of said server inspection when the user initiates a piece of news, adds 1 to the user's of each subscription message count counter.
This method also comprises:
When said browse request message count, server will be a sign with the ID in the request, find corresponding message tree counter, and the numerical value that message is set in the counter return to browser.
This method also comprises: said browser upgrades title bar.
The page prompts information of said renewal comprises increasing newly listens to number of users and/or newly-increased and active user's related news number, and/or the newly-increased number of broadcast message of listening to.
A kind of newly-increased message notifying system comprises browser, server at least, wherein,
Browser is used for the information to the newly-increased message of server requests; After receiving the response of server, upgrade page information;
Server is used to store newly-increased message number and the immediate updating that each logins the message of browser client subscription.
Said browser also is used to upgrade the title bar of browser.
Can find out from the technical scheme that the invention described above provides, comprise the information of browser, after browser receives the response of server, upgrade page information to the newly-increased message of server requests.Pass through the inventive method; When web page contents takes place to upgrade, in time remind browser client, made browser client know that in time updated information has taken place web page contents, like this; Even the user can obtain new info web through upgrading, thereby improves user's viewing experience.
Description of drawings
Fig. 1 is the schematic flow sheet of new information reminding method of the present invention;
Fig. 2 is the composition structural representation of new information prompt system of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of new information reminding method of the present invention.
Embodiment
Fig. 1 is for the schematic flow sheet of new information reminding method of the present invention, and is as shown in Figure 1, comprising:
Step 100: browser is to the information of the newly-increased message of server requests.
In this step, browser can utilize the ajax technology from trend server initiation request according to the cycle that is provided with in advance, in request, comprises ID (ID), comes the content of index request with this.Wherein, the ajax technology is the webpage development technology that a kind of existing establishment interaction network page is used.
Wherein, server can be logined browser client maintenance customer information for each, and user profile comprises: other users' that the user subscribes in native system tabulation, subscribed to other user lists of this user, a message count counter.Subscribed to user B like user A; When user B sent a piece of news, user's (comprising user A) of all booking reader B of server inspection added 1 to the user's (for example user A) of each booking reader B message count counter; So, the counter of user A will dynamically be upgraded in server.When the browse request message count, server will be a sign with the ID in the request, find corresponding counter, and the numerical value in the counter is returned to browser.
Step 101: after browser receives the response of server, upgrade page information.
In this step, the page prompts information of renewal comprises increasing newly listens to number of users and/or newly-increased and active user's related news number, and/or the newly-increased number of broadcast message of listening to etc.
Further; This step also comprises: the title bar that upgrades browser simultaneously through < title>label among the javascript statement modification HTML; The title bar content is the current message number that needs renewal; Make the user minimize browser window or focus not under the situation at current window, can know the current message number upgraded of needing fast.
Pass through the inventive method; When web page contents takes place to upgrade, in time remind browser client, made browser client know that in time updated information has taken place web page contents, like this; Even the user can obtain new info web through upgrading, thereby improves user's viewing experience.
To the inventive method a kind of new information prompt system is provided also, as shown in Figure 2, comprise browser, server at least, wherein,
Browser is used for the information to the newly-increased message of server requests; After receiving the response of server, upgrade page information.Further, also be used to upgrade the title bar of browser.
Server is used to store newly-increased message number and the immediate updating that each logins the message of browser client subscription.
Fig. 3 is for the schematic flow sheet of the embodiment of new information reminding method of the present invention, and is as shown in Figure 3, comprising:
Step 300~step 301: server is each login user maintenance customer information cache, stores the newly-increased message number of the message of this user's subscription, and immediate updating.
Step 302: browser client uses the ajax technology periodically to ask the newly-increased message number of the ordered message of active user from the trend server under the situation of the manual refreshing page not.
Step 303: after server receives request; Obtain the ID in the request package; And through the position of ID index messages number in buffer memory; The corresponding relation computational methods of ID and cache location include but not limited to direct index (prescription formula in full), structuralized query (like SQL query), Hash table etc.; Pull the newly-increased message number of request through agreement (including but not limited to network communication protocol, inter-process communication methods) to buffer memory, this quantity is a counter that is dynamically updated by server, and is stored in and supplies server program to use in the buffer memory.
Subscribed to user B such as user A; When user B sent a piece of news, user's (comprising user A) of all booking reader B of server inspection added 1 to the user's (for example user A) of each booking reader B message count counter; So, the counter of user A will dynamically be upgraded in server.When the browse request message count, server will be a sign with the ID in the request, find corresponding counter, and the numerical value in the counter is returned to browser.
Step 304: after browser receives the response from server, upgrade page information, such as the newly-increased number of users of listening to, and/or newly-increased and active user's related news number, and/or the newly-increased number of broadcast message of listening to etc.; Simultaneously, browser upgrades title bar, makes browser client minimize browser window or focus not under the situation at current window, knows the current message number upgraded of needing fast.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. a new information reminding method is characterized in that, comprising:
Browser is to the information of the newly-increased message of server requests;
After browser receives the response of server, upgrade page information.
2. new information reminding method according to claim 1 is characterized in that, this method also comprises: said server stores is also upgraded the newly-increased message number that each logins the message of browser client subscription.
3. new information reminding method according to claim 2 is characterized in that, said browser utilizes the ajax technology to initiate the information of the newly-increased message of described request to server;
The ID ID that comprises the content that is used for the index request in the described request.
4. new information reminding method according to claim 2 is characterized in that, the newly-increased message number of the message that each login browser client of said renewal is subscribed to comprises:
Said server wherein, comprises the message count counter for each login browser client maintenance customer information during user profile comprises;
The user of all subscription of said server inspection when the user initiates a piece of news, adds 1 to the user's of each subscription message count counter.
5. new information reminding method according to claim 4 is characterized in that, this method also comprises:
When said browse request message count, server will be a sign with the ID in the request, find corresponding message tree counter, and the numerical value that message is set in the counter return to browser.
6. new information reminding method according to claim 2 is characterized in that, this method also comprises: said browser upgrades title bar.
7. according to each described new information reminding method of claim 1~6, it is characterized in that the page prompts information of said renewal comprises increasing newly listens to number of users and/or newly-increased and active user's related news number, and/or the newly-increased number of broadcast message of listening to.
8. a newly-increased message notifying system is characterized in that, comprises browser, server at least, wherein,
Browser is used for the information to the newly-increased message of server requests; After receiving the response of server, upgrade page information;
Server is used to store newly-increased message number and the immediate updating that each logins the message of browser client subscription.
9. newly-increased message notifying according to claim 8 system is characterized in that, said browser also is used to upgrade the title bar of browser.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101200209A CN102780718A (en) | 2011-05-10 | 2011-05-10 | Method and system for prompting new message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101200209A CN102780718A (en) | 2011-05-10 | 2011-05-10 | Method and system for prompting new message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102780718A true CN102780718A (en) | 2012-11-14 |
Family
ID=47125471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101200209A Pending CN102780718A (en) | 2011-05-10 | 2011-05-10 | Method and system for prompting new message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102780718A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647803A (en) * | 2013-11-22 | 2014-03-19 | 北京奇虎科技有限公司 | A method for a mobile terminal to subscribe content and an apparatus |
CN103678639A (en) * | 2013-12-20 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for reminding information updating in browser |
CN103856535A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(北京)有限公司 | Method and device for obtaining user data |
CN105553696A (en) * | 2015-12-10 | 2016-05-04 | 北京匡恩网络科技有限责任公司 | Method for improving rubustness of server and client under large amount of information |
CN106649575A (en) * | 2016-11-16 | 2017-05-10 | 网易(杭州)网络有限公司 | Method and device for accessing update content of interest label |
CN108140100A (en) * | 2015-10-28 | 2018-06-08 | 赫尔实验室有限公司 | The system and method for safeguarding the safety label and reference count of the object in computer storage |
CN108563524A (en) * | 2018-04-28 | 2018-09-21 | 广东电网有限责任公司 | Webpage both for reminding of new message method, apparatus and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047654A (en) * | 2006-03-31 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Immediate communication system and method based on WAP |
CN101079848A (en) * | 2007-06-25 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A communication method, device, server and system for messages at Internet |
US20080201419A1 (en) * | 2007-02-21 | 2008-08-21 | Hung H K Michael | Efficient transmission of presence update information to presence service clients |
-
2011
- 2011-05-10 CN CN2011101200209A patent/CN102780718A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047654A (en) * | 2006-03-31 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Immediate communication system and method based on WAP |
US20080201419A1 (en) * | 2007-02-21 | 2008-08-21 | Hung H K Michael | Efficient transmission of presence update information to presence service clients |
CN101079848A (en) * | 2007-06-25 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A communication method, device, server and system for messages at Internet |
Non-Patent Citations (1)
Title |
---|
周旋等: "基于Ajax的即时消息系统的设计与实现", 《科学技术与工程》, vol. 9, no. 2, 31 January 2009 (2009-01-31), pages 446 - 450 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856535A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(北京)有限公司 | Method and device for obtaining user data |
CN103856535B (en) * | 2012-12-05 | 2018-09-04 | 腾讯科技(北京)有限公司 | A kind of method and apparatus obtaining user data |
CN103647803A (en) * | 2013-11-22 | 2014-03-19 | 北京奇虎科技有限公司 | A method for a mobile terminal to subscribe content and an apparatus |
CN103678639A (en) * | 2013-12-20 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for reminding information updating in browser |
CN108140100A (en) * | 2015-10-28 | 2018-06-08 | 赫尔实验室有限公司 | The system and method for safeguarding the safety label and reference count of the object in computer storage |
CN105553696A (en) * | 2015-12-10 | 2016-05-04 | 北京匡恩网络科技有限责任公司 | Method for improving rubustness of server and client under large amount of information |
CN106649575A (en) * | 2016-11-16 | 2017-05-10 | 网易(杭州)网络有限公司 | Method and device for accessing update content of interest label |
CN106649575B (en) * | 2016-11-16 | 2020-06-09 | 网易(杭州)网络有限公司 | Access method and device for updating content of interest tag |
CN108563524A (en) * | 2018-04-28 | 2018-09-21 | 广东电网有限责任公司 | Webpage both for reminding of new message method, apparatus and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102780718A (en) | Method and system for prompting new message | |
EP3491544B1 (en) | Web page display systems and methods | |
CN101753605B (en) | Data validation method and server | |
CN101231636B (en) | Convenient information search method, system and an input method system | |
US10430804B2 (en) | System and method for accessing a hub | |
CN100437483C (en) | Event distributing method and device based on Web page | |
CN103036970A (en) | Method and system for page frame content subscription | |
WO2016095733A1 (en) | Network data display processing method and device | |
CN102654885A (en) | Mobile terminal webpage adaptation system and method | |
CN103973737A (en) | Method, server and browser for actively pushing messages | |
CN103428076A (en) | Method and device for transmitting information to multi-type terminals or applications | |
US20160012150A1 (en) | System and method for main distribution network graph/model/data integration based on remote access and information interaction | |
US9509548B2 (en) | Multimedia aggregation technique based on RSS feeds | |
CN104239298A (en) | Text message recommendation method, server, browser and system | |
CN106227874A (en) | A kind of mobile news client based on UCL | |
CN103383687A (en) | Page processing method and device | |
CN103473339A (en) | Method and system for acquiring information during information updating process | |
CN102521296A (en) | Method for screening data items in separated pages of web page | |
CN108780458A (en) | A kind of page cache processing method, device and server | |
CN103164456A (en) | Web review system and implementation method thereof | |
CN105653678A (en) | Data chart subscription method and data chart subscription system | |
CN103379163A (en) | Service object determination method and determination device | |
CN102739562B (en) | Method and device for sending collection information | |
CN103559264B (en) | Widget data timely updating method and device | |
CN105338091A (en) | High-transmission-efficiency personalized information interface display method and apparatus |
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: 20121114 |