CN109885409A - A kind of interior multi-page method of data synchronization based on case mechanism of browser - Google Patents

A kind of interior multi-page method of data synchronization based on case mechanism of browser Download PDF

Info

Publication number
CN109885409A
CN109885409A CN201711369631.0A CN201711369631A CN109885409A CN 109885409 A CN109885409 A CN 109885409A CN 201711369631 A CN201711369631 A CN 201711369631A CN 109885409 A CN109885409 A CN 109885409A
Authority
CN
China
Prior art keywords
page
browser
data
broadcast
case mechanism
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.)
Withdrawn
Application number
CN201711369631.0A
Other languages
Chinese (zh)
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.)
Hangzhou Miluo Technology Co Ltd
Original Assignee
Hangzhou Miluo 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 Hangzhou Miluo Technology Co Ltd filed Critical Hangzhou Miluo Technology Co Ltd
Priority to CN201711369631.0A priority Critical patent/CN109885409A/en
Publication of CN109885409A publication Critical patent/CN109885409A/en
Withdrawn legal-status Critical Current

Links

Abstract

The invention belongs to browser technology fields, are related to a kind of synchronous method, more particularly to the multi-page method of data synchronization in a kind of browser based on case mechanism.It includes the following steps: step 1;Step 2;Step 3, step 4, step 5;The beneficial effects of the present invention are: this method is supported without using other plug-in units or special server, therefore what be can be convenient builds and runs this function, reduces development and maintenance cost.This method constructs the mechanism communicated between a set of page in a browser, when user opens simultaneously two pages of A, B, wish that the certain interior perhaps settings inputted in the A page are synchronized to the B page in real time, this mechanism can be triggered and be synchronized to more pages such as the B page or C, D.

Description

A kind of interior multi-page method of data synchronization based on case mechanism of browser
Technical field
The invention belongs to browser technology fields, are related to a kind of synchronous method, more particularly to based on mobile device and PC Page data synchronous method in device navigator.
Background technique
Browser refers to HTML (the HyperText Mark-up that can show web page server or file system Language, hypertext markup language or hypertext markup language) file content, and allow user and these file interactions A kind of software.Web browser mainly passes through HTTP (hypertext transport protocol, hypertext transfer protocol) Agreement interacts with web page server and obtains webpage, these webpages are by URL (Uniform/Universal ResourceLocator, web page address) it is specified, file format is usually HTML, and by MIME (Multipurpose Internet MailExtensions, multi-functional internet mail extensions) it is indicated in http protocol.
Usually common web browser, including the Internet Explorer (IE) of Microsoft, Mozilla on PC The Safari of Firefox (red fox browser), Apple (apple), Opera, Google Chrome, 360 secure browsers, are searched Dog high speed browser, Tencent QQ browser etc., above-mentioned each browser substantially also have respective version in mobile terminal, It can be used in the terminal systems such as iPhone or Android.Therefore, browser is the client journey most often used Sequence.
Referred herein synchronizing refers to that in the same browser of a terminal, two or more the page exists Two or more amounts changed over time keep certain relativeness in change procedure.
Have at present much with needing to be based on browser completion, these applications are no lack of sometimes for the multiple pages of opening simultaneously Operation could complete a certain function;However in the browser of standard, if after user opens a page A in local, then beat Open subsequent page B.After filling in content in the page B opened below, it is unable to the page A that real time reaction is opened to first On.Then in the prior art, if it is desired to be able to satisfy and no matter realize method of data synchronization, user on PC or on mobile terminal The data of page B could must be reacted on page A by means of server, but the data of page B may be interim or part Data, it is undesirable that submit to server, or (signal problem of such as mobile terminal) cannot when network is temporarily unavailable It is referred to.And the support of server is needed, it necessarily will increase the expense and cost of enterprise or tissue.
Therefore, it is in communication with each other the data of the page in each platform (terminal) on respective platform with same set of method With it is synchronous, get rid of the dependence of server, save server overhead and cost, just technical problem referred to as urgently to be resolved.
Summary of the invention
The purpose of invention is in view of the above-mentioned problems, provide a kind of dependence for getting rid of server in browser, using disappearing The method that breath mechanism is efficiently completed synchronous working, thus make webpage not reliance server just can be in various terminal equipment or flat On platform, the synchronous movement of data is completed, and smaller than being delayed by way of server, it is lighter, substantially increase user Experience and operating efficiency, also reduce the cost of configuration server.
In order to solve the above-mentioned technical problems, the present invention provides the following technical solutions: a kind of browser is interior to be based on event The multi-page method of data synchronization of mechanism includes the following steps: step 1, opens multiple pages in browser, and be separately operable The code of synchronization module;Step 2, definition needs synchronous event title and event id mark;Step 3, user is enterprising at interface The operation that row needs, such as newly-built, modification, deletion data or setting options content;Step 4, synchronization module is defined according to step 2 Event title and event id, select the data met pass through it is similar send broadcast by way of each page of synchronization notice;Step 5, after other each pages receive the message that broadcast comes, by the content recovery received at original data, and it is shown in the page It gets in stocks and makes corresponding judgement processing.
Browsing in multi-page method of data synchronization in a kind of above-mentioned browser based on case mechanism, in step 1 Device refers to contemporary standard browser (IE, Chrome, Firefox, QQ browser, 360 browsers, Safari etc.), including list is not It is confined to the equipment such as Windows, macOS, Android, iPhone.
In multi-page method of data synchronization in a kind of above-mentioned browser based on case mechanism, in the step 4 The mode of similar transmission broadcast be not limited to a page, any page for running synchronization module can be to its other brother Younger brother's page is broadcasted, to complete mutual data study, is kept so the respective data integrity of the page.
In multi-page method of data synchronization in a kind of above-mentioned browser based on case mechanism, in the step 5, The broadcast data received is to need in advance first by data decompression, and pass through overcompression when the page receives some data broadcasting Upper-layer protocol interface is passed, oneself broadcast listening again.
Compared with prior art, the beneficial effects of the present invention are: this method is without using other plug-in units or special service Device is supported, and the present invention is more excellent than server apparatus performance before, and more convenient, scalability is stronger, compatible mobile phone terminal With PC terminal, therefore exploitation and follow-up maintenance cost are greatly reduced, improves program efficiency.In advance, first definition needs this method The event title and event id to be synchronized mark, user is by newly-built, modification, deletion data or saves the events such as setting, triggering Synchronous event completes synchronic command.Be provided with synchronic command each page, both can be used as broadcast transmission side to it is each its He sends data by the page, can also be used as broadcast reciever and collects broadcast, but it can only have a broadcast hair in the same time The side of sending.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments, is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the multi-page method of data synchronization based on case mechanism in a kind of browser, includes the following steps: Step 1, multiple pages in browser are opened, and are separately operable the code of synchronization module;Step 2, definition needs synchronous thing Part title and event id mark;Step 3, the operation that user is needed on interface, for example, newly-built, modification, delete data or Setting options content;Step 4, the event title and event id that synchronization module is defined according to step 2, select the data met to pass through The similar each page of mode synchronization notice for sending broadcast;It step 5, will after other each pages receive the message that broadcast comes The content recovery received is shown in the page and gets in stocks and make corresponding judgement processing at original data.Complete step 5, program State back to step 3 recycles again.Such as in user's online chat system, step 1 complete the page load and After step 2 defines the user information field for completing to need synchronization;Step 3 user is on one page in corresponding information input frame After the completion of input;Step 4 triggers predefined synchronous event;Step 5 needs to show user information simultaneously on other pages The information inputted before showing is synchronized in region immediately.After receiving specified synchronous event, it is not limited to data and is synchronized to it He page display area shows, it is all event triggering come drive execute it is synchronous by way of all should be its feature.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention, Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features, All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (4)

1. the multi-page method of data synchronization based on case mechanism in a kind of browser, which comprises the steps of: step Rapid 1, multiple pages in browser are opened, and be separately operable the code of synchronization module;Step 2, definition needs synchronous event Title and event id mark;Step 3, the operation that user is needed on interface;Step 4, synchronization module is defined according to step 2 Event title and event id, select each page of the data met synchronization notice by way of accordingly sending broadcast;Step 5, after other each pages receive the message that respective broadcast comes, by the content recovery received at original data, and it is shown in The page, which is got in stocks, makes corresponding judgement processing.
2. the multi-page method of data synchronization based on case mechanism in a kind of browser according to claim 1, feature Be, the browser in step 1 refers to contemporary standard browser, including but not limited to Windows, macOS, Android, IPhone equipment.
3. the multi-page method of data synchronization based on case mechanism in a kind of browser according to claim 1, feature It is, the corresponding mode for sending broadcast in the step 4 is not limited to a page, runs any page of synchronization module Its other fraternal page can be broadcasted, to complete mutual data study, keep thus the page respectively Data integrity.
4. the multi-page method of data synchronization based on case mechanism in a kind of browser according to claim 1, feature It is, in the step 5, the broadcast data received, when the page receives some data broadcasting, is needed in advance through overcompression Will be first by data decompression, and pass to upper-layer protocol interface, oneself broadcast listening again.
CN201711369631.0A 2017-12-06 2017-12-06 A kind of interior multi-page method of data synchronization based on case mechanism of browser Withdrawn CN109885409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711369631.0A CN109885409A (en) 2017-12-06 2017-12-06 A kind of interior multi-page method of data synchronization based on case mechanism of browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711369631.0A CN109885409A (en) 2017-12-06 2017-12-06 A kind of interior multi-page method of data synchronization based on case mechanism of browser

Publications (1)

Publication Number Publication Date
CN109885409A true CN109885409A (en) 2019-06-14

Family

ID=66924689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711369631.0A Withdrawn CN109885409A (en) 2017-12-06 2017-12-06 A kind of interior multi-page method of data synchronization based on case mechanism of browser

Country Status (1)

Country Link
CN (1) CN109885409A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187848A (en) * 2020-07-13 2021-01-05 青岛窗外科技有限公司 Webpage synchronization implementation method
CN114827231A (en) * 2022-04-11 2022-07-29 杭州指令集智能科技有限公司 Method and system for realizing multi-window point-to-point communication based on local storage of browser

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187848A (en) * 2020-07-13 2021-01-05 青岛窗外科技有限公司 Webpage synchronization implementation method
CN114827231A (en) * 2022-04-11 2022-07-29 杭州指令集智能科技有限公司 Method and system for realizing multi-window point-to-point communication based on local storage of browser
CN114827231B (en) * 2022-04-11 2023-09-26 杭州指令集智能科技有限公司 Method and system for realizing multi-window point-to-point communication based on browser local storage

Similar Documents

Publication Publication Date Title
CA2979043C (en) Systems and methods for web api communication
US11258622B2 (en) Multiplexing message distribution within group-based communication system
US10404638B2 (en) Content sharing scheme
CN101924779B (en) Method, equipment and system for sharing resources by browser clients
EP2574004B1 (en) Method, apparatus and system for improving synchronization efficiency of really simple syndication service
CN103067248A (en) Method and device for displaying chaining summary information in instant messaging software window
CN110730208A (en) Local device calling method and device, storage medium and device
US20120317474A1 (en) Methods and systems for real-time web content publishing
EP3060997A1 (en) Method and system for capturing web content from a web server
CN106055383A (en) Request processing method and device
JP2016536683A (en) Run and display events in a web browser
US20200233878A1 (en) Card-based information management method and system
WO2017059727A1 (en) Self-adaptive data display method, terminal device and server
CN109885409A (en) A kind of interior multi-page method of data synchronization based on case mechanism of browser
AU2020305669B2 (en) Special effect synchronization method, device, and storage medium
US20130138770A1 (en) Apparatus and method for sharing web contents using inspector script
CN112965673A (en) Content printing method, device, equipment and storage medium
CN112347401A (en) House same-screen watching method, system, device and computer readable storage medium
CN109478206B (en) Multi-language communication system and multi-language communication providing method
KR101349201B1 (en) Apparatus for interoperability between Web-browser and Local-resources in the Mobile Device and method thereof
JP2006004136A (en) Html file processing method and program
RU2665240C2 (en) Method and device for page insertion
JP2007079988A (en) Www browser, html page sharing system and html page sharing method
CN114125732B (en) Message processing method and device, storage medium and electronic equipment
US9875066B2 (en) Single action print application creation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310000 floor 502 Room, No. 2 building, No. 99, Hsiang Garden Road, Gongshu District, Hangzhou, Zhejiang province city 5

Applicant after: Hangzhou Miluoxing Technology (Group) Co.,Ltd.

Address before: 310000 floor 502 Room, No. 2 building, No. 99, Hsiang Garden Road, Gongshu District, Hangzhou, Zhejiang province city 5

Applicant before: HANGZHOU MELOT TECHNOLOGY Co.,Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190614