CN103368989A - Webpage node updating method - Google Patents

Webpage node updating method Download PDF

Info

Publication number
CN103368989A
CN103368989A CN2012100861054A CN201210086105A CN103368989A CN 103368989 A CN103368989 A CN 103368989A CN 2012100861054 A CN2012100861054 A CN 2012100861054A CN 201210086105 A CN201210086105 A CN 201210086105A CN 103368989 A CN103368989 A CN 103368989A
Authority
CN
China
Prior art keywords
service end
client
update data
hypertext
described client
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.)
Granted
Application number
CN2012100861054A
Other languages
Chinese (zh)
Other versions
CN103368989B (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.)
SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI SHOPEX NETWORK TECHNOLOGY 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 SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd
Priority to CN201210086105.4A priority Critical patent/CN103368989B/en
Publication of CN103368989A publication Critical patent/CN103368989A/en
Application granted granted Critical
Publication of CN103368989B publication Critical patent/CN103368989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a webpage node updating method comprising a service end and a client end which is used for displaying a hypertext file, wherein the client end is connected with the service end through communication media. The method specifically comprises the following steps: step a, the service end organizes hypertext DOM node update data according to an updating requirement of the client end; step b, the service end sends the organized node update data to the client end after the organized node update data are packaged by employing HTML annotation symbols; step c, through a browser based on a hypertext protocol, the client end receives the update data sent by the service end; step d, the client end parses the update data and updates DOM nodes corresponding to the update data. The beneficial effects of the webpage node updating method are that the update data are packaged by employing the HTML annotation symbols, the update data are processed as annotation when the hypertext file is interpreted by the browser, and page format cannot be affected even if update data abnormity occurs.

Description

A kind of web page joint update method
Technical field
The present invention relates to a kind of WEB method for updating pages, especially a kind of web page joint update method.
Background technology
Along with the development of internet technique, the popularity of network is more and more higher, and the website has also obtained significant progress as the main contents supplier of the Internet.The website no longer is satisfied with content that unified standard only is provided but is wished can be more and user interaction and then can realize providing content service by user's demand.
Usually, the action of webpage is undertaken by page furbishing, singly is to refresh frequently the page to cause the user to browse frequently to be interrupted, and makes the user feel ophthalmic uncomfortable.For this problem, provide the update mode that does not refresh the page based on the Replace method of JavaScript, but this mode has problems also.Because the Replace method does not refresh the page, namely the page is not reorganized, but upgrade at the existing page, in a single day this just caused more, and the abnormal conditions such as responsive symbol appear existing in or the data long such as data in new data, can cause the collapse of part or full page form and then make user interface chaotic, make the user can't normal browsing.
Summary of the invention
For the problems referred to above that existing page refreshment mode exists, the invention provides a kind of web page joint update method that is intended to avoid page formatting collapse may when upgrading, occur.
The technical scheme that technical solution problem of the present invention adopts is:
A kind of web page joint update method wherein, comprises service end and be used for to show the client of hypertext document that described client is connected with described service end by medium of communication, specifically comprises the steps;
Step a, described service end are organized hypertext DOM node updates data according to the update request of described client;
Step b, described service end will be sent to described client after will organizing complete node updates data to encapsulate with the HTML annotation symbol;
The more new data that step c, described client send to accept described service end based on the browser of hyper text protocol;
Steps d, described client are resolved described more new data and the corresponding DOM node of described more new data are upgraded.
Above-mentioned web page joint update method, wherein, described client is resolved described more new data by the script that embeds hypertext document.
Above-mentioned web page joint update method, wherein, described client is upgraded described DOM node by the script that embeds hypertext document.
Above-mentioned web page joint update method, wherein, described service end comprises the request judge module, the described request judge module proposes update request to described client to be judged, and described client is returned in the unusual request that will determine.
The invention has the beneficial effects as follows:
Adopt the hypertext annotation symbol to encapsulate more new data, when making the browser-interpreted hypertext document more new data as annotation process, even more new data occurs unusually also can not having influence on page formatting.
Description of drawings
Fig. 1 is the FB(flow block) of a kind of web page joint update method of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as limiting to the invention.
As shown in Figure 1, a kind of web page joint update method of the present invention wherein, comprises service end and be used for to show the client of hypertext document that client is connected with service end by medium of communication, specifically comprises the steps;
Step a, service end are organized hypertext DOM node updates data according to the update request of client;
Step b, service end will be sent to client after will organizing complete node updates data to encapsulate with the HTML annotation symbol;
The more new data that step c, client send to accept service end based on the browser of hyper text protocol;
Steps d, client are resolved more new data and the corresponding DOM node of new data are more upgraded, wherein client is resolved more new data by the script that embeds hypertext document, and by embedding the script renewal DOM node of hypertext document, script can form by the script that JavaScript or other scripts are write.
Because more new data is encapsulated by the hypertext annotation symbol, browser can not show it, has therefore avoided the user interface confusion that causes because upgrading data exception.And then utilizing the Replace method that each DOM node of hypertext document is upgraded after resolving by script, the page furbishing of avoiding has improved the continuity that the user browses.
Further, wherein, service end comprises the request judge module, the request judge module proposes update request to client and judges, and client is returned in the unusual request that will determine, like this can be at the issuable improper update of service end advanced processing, further reducing more, unusual possibility appears in new data.
The above only is preferred embodiment of the present invention; be not so limit claim of the present invention; so the means that the equivalent structure that all utilizations specification of the present invention and diagramatic content have been done changes and those skilled in the art habitually practise are replaced, and all are included in protection scope of the present invention.

Claims (4)

1. a web page joint update method is characterized in that, comprises service end and be used for to show the client of hypertext document, and described client is connected with described service end by medium of communication, specifically comprises the steps;
Step a, described service end are organized hypertext DOM node updates data according to the update request of described client;
Step b, described service end will be sent to described client after will organizing complete node updates data to encapsulate with the HTML annotation symbol;
The more new data that step c, described client send to accept described service end based on the browser of hyper text protocol;
Steps d, described client are resolved described more new data and the corresponding DOM node of described more new data are upgraded.
2. web page joint update method as claimed in claim 1 is characterized in that, described client is resolved described more new data by the script that embeds hypertext document.
3. web page joint update method as claimed in claim 1 is characterized in that, described client is upgraded described DOM node by the script that embeds hypertext document.
4. web page joint update method as claimed in claim 1 is characterized in that described service end comprises the request judge module, and the described request judge module proposes update request to described client to be judged, and described client is returned in the unusual request that will determine.
CN201210086105.4A 2012-03-28 2012-03-28 A kind of web page joint update method Active CN103368989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210086105.4A CN103368989B (en) 2012-03-28 2012-03-28 A kind of web page joint update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210086105.4A CN103368989B (en) 2012-03-28 2012-03-28 A kind of web page joint update method

Publications (2)

Publication Number Publication Date
CN103368989A true CN103368989A (en) 2013-10-23
CN103368989B CN103368989B (en) 2016-06-08

Family

ID=49369525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210086105.4A Active CN103368989B (en) 2012-03-28 2012-03-28 A kind of web page joint update method

Country Status (1)

Country Link
CN (1) CN103368989B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191225A (en) * 2020-01-03 2020-05-22 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for switching isolated objects

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937160A (en) * 1997-05-01 1999-08-10 Reedy Creek Technologies, Inc. Systems, methods and computer program products for updating hypertext documents via electronic mail
CN101192233A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Web page dynamic updating method, system and apparatus
US20100169311A1 (en) * 2008-12-30 2010-07-01 Ashwin Tengli Approaches for the unsupervised creation of structural templates for electronic documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937160A (en) * 1997-05-01 1999-08-10 Reedy Creek Technologies, Inc. Systems, methods and computer program products for updating hypertext documents via electronic mail
CN101192233A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Web page dynamic updating method, system and apparatus
US20100169311A1 (en) * 2008-12-30 2010-07-01 Ashwin Tengli Approaches for the unsupervised creation of structural templates for electronic documents

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程汤培: "应用JScript和XML自定义无刷新多级联动菜单", 《电脑编程技巧与维护》, no. 15, 3 August 2009 (2009-08-03) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191225A (en) * 2020-01-03 2020-05-22 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for switching isolated objects
CN111191225B (en) * 2020-01-03 2022-05-27 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for switching isolated objects

Also Published As

Publication number Publication date
CN103368989B (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US10185704B2 (en) Webpage browsing method, webapp framework, method and device for executing javascript and mobile terminal
JP6051337B2 (en) Client-side page processing
EP3491544B1 (en) Web page display systems and methods
TWI322950B (en)
CN104850602B (en) A kind of rendering refreshing implementation method and device based on internet web page
WO2015127882A1 (en) Method, apparatus and system for extracting webpage content
US20130275496A1 (en) Method, Apparatus And System For Rendering Web Page
CN105095280A (en) Caching method and apparatus for browser
US20080077855A1 (en) Generic website
US20140006934A1 (en) Method for rearranging web page
CN101197849A (en) Method and device for commuting internet page into wireless application protocol page
WO2014019506A1 (en) Method and device for displaying webpage contents in browser
CN103389972A (en) Method and device for obtaining text based on really simple syndication (RSS)
CN103135977A (en) Information-inputting method in browser and device using the same
CN104123125A (en) Webpage resource acquisition method and device
CN105528369A (en) Webpage transcoding method and device and server
CN103902571A (en) Method and system for saving webpage complete content and corresponding client end and server
EP3080722A1 (en) Web page rendering on wireless devices
CN101620621A (en) Method and system for segmenting web page
CN102799764A (en) Web-based engineering calculation system and method
EP1959354A2 (en) Method and system for converting hypertext markup language web page to plain text
CN103347069A (en) Method and device for realizing network access
CN103368989A (en) Webpage node updating method
CN102681848B (en) Develop in microtec mode and the method for accessed web page, device, terminal and system
CN102200878B (en) Signal conditioning package, information handling system and information processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method for Updating Web Page Nodes

Effective date of registration: 20230712

Granted publication date: 20160608

Pledgee: Industrial Bank Co.,Ltd. Shanghai Jinqiao Branch

Pledgor: SHANGHAI SHOPEX NETWORK TECHNOLOGY Co.,Ltd.|SHOPEX SOFTWARE CO.,LTD.

Registration number: Y2023310000365

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231007

Granted publication date: 20160608

Pledgee: Industrial Bank Co.,Ltd. Shanghai Jinqiao Branch

Pledgor: SHANGHAI SHOPEX NETWORK TECHNOLOGY Co.,Ltd.|SHOPEX SOFTWARE CO.,LTD.

Registration number: Y2023310000365