CN104915190A - Browser synchronization method and device based on document object model incident - Google Patents

Browser synchronization method and device based on document object model incident Download PDF

Info

Publication number
CN104915190A
CN104915190A CN201410096513.7A CN201410096513A CN104915190A CN 104915190 A CN104915190 A CN 104915190A CN 201410096513 A CN201410096513 A CN 201410096513A CN 104915190 A CN104915190 A CN 104915190A
Authority
CN
China
Prior art keywords
browser
source
dom
event information
dom event
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
Application number
CN201410096513.7A
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.)
ZTE Corp
Beijing University of Posts and Telecommunications
Original Assignee
ZTE Corp
Beijing University of Posts and Telecommunications
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 ZTE Corp, Beijing University of Posts and Telecommunications filed Critical ZTE Corp
Priority to CN201410096513.7A priority Critical patent/CN104915190A/en
Publication of CN104915190A publication Critical patent/CN104915190A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a browser synchronization method and device based on a document object model incident. The browser synchronization method based on the DOM incident includes the steps that DOM incident information is captured and recorded in a source browser; the DOM incident information is transmitted to a target browser; the DOM incident information is recovered and displayed in the target browser. The invention further provides the browser synchronization device based on the DOM incident.

Description

Based on browser synchronous method and the device of document dbject model event
Technical field
The present invention relates to the operation display technique of browser, particularly relate to a kind of browser synchronous method based on document dbject model (Document Object Model, DOM) event and device.
Background technology
Along with the high speed development of internet, user is no longer confined to independently by browser online the use of browser, and more expects the communication realizing between user by browser.Such as, user expect by browser, realize many people browse simultaneously same webpage, simultaneously surf the Net shopping, watch Online Video, film etc. simultaneously, promote the interaction when surfing the web between multiple user.
But the operation displaying of current browser shows with video mode mostly, as shown the function of each website of a website, use video mode by network condition restriction ratio comparatively seriously, instantaneity to be made inadequate, the synchronous of browser cannot be realized.
Therefore, how to realize the synchronous of browser, to meet user interaction demand, promote the experience of user, become the problem that those skilled in the art need solution now badly.
Summary of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of browser synchronous method based on DOM event and device, can realize the synchronous of multiple browser.
For achieving the above object, technical scheme of the present invention is achieved in that
Embodiments provide a kind of browser synchronous method based on DOM event, the method comprises:
Catch in the browser of source and record DOM event information;
By described DOM event message transmission to object browser;
Carry out reducing and show described DOM event information in object browser.
In such scheme, described method also comprises: the situation of the reduction of described DOM event information in object browser and displaying fed back to source browser.
In such scheme, described DOM event information of catching in the browser of source is: the interaction function between object browser opened by described source browser, when preparing to send interactive information to object browser, catches DOM event information in the browser of source.
In such scheme, described DOM event information of catching in the browser of source is: during the operated from a distance that described source browser needs record fixing, catch DOM event information in the browser of source.
In such scheme, described DOM event information of catching in the browser of source is: described source browser carries out the displaying of a web page operation or project to object browser, when opening the event synchronization function between object browser, in the browser of source, catch DOM event information.
The embodiment of the present invention additionally provides a kind of browser synchronous device based on DOM event, and this device comprises: event capturing module, information transmission modular and event recovery module; Wherein,
Described event capturing module, for catching and recording DOM event information in the browser of source;
Described information transmission modular, for by described DOM event message transmission to object browser;
Described event recovery module, reduces and shows described DOM event information for carrying out in object browser.
In such scheme, described device also comprises feedback module, for the situation of the reduction of described DOM event information in object browser and displaying being fed back to source browser.
In such scheme, described device also comprises trigger module, for opening the interaction function between object browser when source browser, when preparing to send interactive information to object browser, triggers described event capturing module and catches DOM event information.
In such scheme, described device also comprises trigger module, during for needing to record fixing operated from a distance when source browser, triggering described event capturing module and catching DOM event information.
In such scheme, described device also comprises trigger module, for to carry out the displaying of a web page operation or project to object browser when source browser, when opening the event synchronization function between object browser, trigger described event capturing module and catch DOM event information.
The browser synchronous method based on DOM event that the embodiment of the present invention provides and device, catch and record DOM event information in the browser of source; By described DOM event message transmission to object browser; Carry out reducing and show described DOM event information in object browser.So, by browser catching, transmit, reduce and showing DOM event information, what can realize between multiple browser is synchronous.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram of the embodiment of the present invention based on the browser synchronous method of DOM event;
Fig. 2 is the composition structural representation of the embodiment of the present invention based on the browser synchronous device of DOM event.
Embodiment
In embodiments of the present invention, catch in the browser of source and record DOM event information; By described DOM event message transmission to object browser; Carry out reducing and show described DOM event information in object browser.
Further, the situation of the reduction of described DOM event information in object browser and displaying fed back to source browser, feedback message comprises successfully or mistake.
Here, the DOM event information of catching in the browser of source can, for user is to the DOM event information of source browser web page operation, also can be some fixing remote-operated DOM event informations.
Here, the trigger condition of catching DOM event information in the browser of source comprises three kinds of situations:
The first situation, when source browser needs to carry out interaction with one or more object browser, opens the interaction function between object browser, when preparing to send interactive information to object browser;
The second situation, when source browser (also referred to as local browser) needs to record some fixing operated from a distances, to facilitate when without when still can realize described operated from a distance when network;
The third situation, when source browser carries out the displaying of a web page operation or project to object browser, when opening the event synchronization function between object browser.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Fig. 1 is the realization flow schematic diagram of the embodiment of the present invention based on the browser synchronous method of DOM event, and as shown in Figure 1, the embodiment of the present invention comprises based on the browser synchronous method of DOM event:
Step S100: catch in the browser of source and record DOM event information;
Step S101: by described DOM event message transmission to object browser;
Here, source browser by described DOM event message transmission to object browser;
Step S102: carry out reducing and show described DOM event information in object browser.
Further, described method also comprises: the situation of described DOM event information in self reduction and displaying can be fed back to source browser by object browser, and feedback message comprises successfully or mistake; Concrete, when the reduction of DOM event information in object browser with shows successfully, object browser feeds back success message to source browser; Otherwise, feedback error message.
Fig. 2 is the composition structural representation of the embodiment of the present invention based on the browser synchronous device of DOM event, as shown in Figure 2, the embodiment of the present invention comprises based on the device that the browser of DOM event is synchronous: event capturing module 10, information transmission modular 11 and event recovery module 12; Wherein,
Described event capturing module 10, for catching and recording DOM event information in the browser of source;
Described information transmission modular 11, for by described DOM event message transmission to object browser;
Described event recovery module 12, reduces and shows described DOM event information for carrying out in object browser.
Further, described device also comprises feedback module 13, and for the reduction of described DOM event information in object browser and displaying situation being fed back to source browser, feedback message comprises successfully or mistake.
Further, described device also comprises trigger module 14, catches DOM event information for triggering described event capturing module 10.
Particularly, trigger module 14 triggers the condition that described event capturing module 10 catches DOM event information and comprises three kinds of situations: when the interaction function between object browser opened by source browser, when preparing to send interactive information to object browser; When source browser needs to record some fixing operated from a distances, to facilitate when without when still can realize described operated from a distance when network; When source browser carries out the displaying of a web page operation or project to object browser, when opening the event synchronization function between object browser.
Here, described event capturing module 10 and information transmission modular 11, trigger module 14 are arranged on browser side, source; Described event recovery module 12 and feedback module 13 are arranged on object browser side.
In actual applications, described event capturing module 10, information transmission modular 11 and trigger module 14 all can be realized by the central processing unit (CPU) of terminal belonging to the browser of source, microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA); Described event recovery module 12, feedback module 13 all can be realized by CPU, MPU, DSP, FPGA of terminal belonging to object browser.
Below in conjunction with catch DOM event information in the browser of source three kinds different trigger conditions, set forth the specific implementation flow process of the embodiment of the present invention based on the browser synchronous method of DOM event respectively with three different application scenarioss.
Application scenarios one: source browser needs to carry out interaction with one or more object browser.Concrete steps comprise:
Step S10: open the interaction function between multiple browser, sets up source browser and needs the connection between interactive object browser, when source browser prepares to send interactive information to object browser, catches the DOM event information in the browser of source;
Step S11: record the DOM event information of catching, as the interactive information of source browser;
Step S12: give all object browsers needing interaction by the recorded DOM event message transmission captured via information transmission modular;
Here, interactive object browser is needed can to have multiple;
Step S13: after object browser receives described DOM event information, is reduced by event recovery module to described DOM event information and shows, reaching the synchronous effect of browser;
Step S14: the situation of described DOM event information in self reduction and displaying is fed back to source browser by object browser;
Concrete, when the reduction of DOM event information in object browser with when showing successfully, object browser feeds back success message to source browser; Otherwise, feedback error message.
So, by transmitting DOM event information between source browser and object browser, the effect of multiple browser interaction just can be reached.
Application scenarios two: when source browser (also referred to as local browser) needs to record some fixing operated from a distances, to facilitate when still can realizing described operated from a distance without when network.Concrete steps comprise:
Step S20: trigger event trapping module, catches the DOM event information in the browser of source;
Step S21: record the DOM event information of catching, and according to the function that will realize, namely fixing operated from a distance title, to recorded DOM event information name;
Step S22: when again needing to realize described fixing operated from a distance by source browser, source browser directly performs recorded DOM event information;
Step S23: the implementation status of source browser to recorded DOM event information fed back, feedback message comprises successfully or mistake.
So, the DOM event information needed by a service process of browser remote start server can being carried out catching and record, when again starting this service, then only needing to perform the DOM event information be recorded in the browser of source.
Application scenarios three: source browser carries out the displaying of a web page operation or project to object browser.Concrete steps comprise:
Step S30: open the event synchronization function between browser, catch the DOM event information in the browser of source;
Step S31: record the DOM event information of catching, as the interactive information of source browser;
Step S32: the object browser giving needs synchronous the recorded DOM event message transmission captured via information transmission modular;
Step S33: after object browser receives described DOM event information, is reduced by event recovery module to described DOM event information and shows, object browser realizes the displaying of a web page operation or project, reaches the synchronous effect of browser;
Step S34: the situation of described DOM event information in self reduction and displaying is fed back to source browser by object browser.
So, by transmitting DOM event information between source browser and object browser, the synchronous effect of source browser and object browser can just be reached.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (10)

1. based on a browser synchronous method for DOM event, it is characterized in that, described method comprises:
Catch in the browser of source and record DOM event information;
By described DOM event message transmission to object browser;
Carry out reducing and show described DOM event information in object browser.
2. method according to claim 1, is characterized in that, described method also comprises: the situation of the reduction of described DOM event information in object browser and displaying fed back to source browser.
3. method according to claim 1 and 2, it is characterized in that, described DOM event information of catching in the browser of source is: the interaction function between object browser opened by described source browser, when preparing to send interactive information to object browser, catches DOM event information in the browser of source.
4. method according to claim 1 and 2, is characterized in that, described DOM event information of catching in the browser of source is: during the operated from a distance that described source browser needs record fixing, catch DOM event information in the browser of source.
5. method according to claim 1 and 2, it is characterized in that, described DOM event information of catching in the browser of source is: described source browser carries out the displaying of a web page operation or project to object browser, when opening the event synchronization function between object browser, in the browser of source, catch DOM event information.
6. based on a browser synchronous device for DOM event, it is characterized in that, described device comprises: event capturing module, information transmission modular and event recovery module; Wherein,
Described event capturing module, for catching and recording DOM event information in the browser of source;
Described information transmission modular, for by described DOM event message transmission to object browser;
Described event recovery module, reduces and shows described DOM event information for carrying out in object browser.
7. device according to claim 6, is characterized in that, described device also comprises feedback module, for the situation of the reduction of described DOM event information in object browser and displaying being fed back to source browser.
8. the device according to claim 6 or 7, it is characterized in that, described device also comprises trigger module, for opening the interaction function between object browser when source browser, when preparing to send interactive information to object browser, trigger described event capturing module and catch DOM event information.
9. the device according to claim 6 or 7, is characterized in that, described device also comprises trigger module, during for needing to record fixing operated from a distance when source browser, triggering described event capturing module and catching DOM event information.
10. the device according to claim 6 or 7, it is characterized in that, described device also comprises trigger module, for to carry out the displaying of a web page operation or project to object browser when source browser, when opening the event synchronization function between object browser, trigger described event capturing module and catch DOM event information.
CN201410096513.7A 2014-03-14 2014-03-14 Browser synchronization method and device based on document object model incident Pending CN104915190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410096513.7A CN104915190A (en) 2014-03-14 2014-03-14 Browser synchronization method and device based on document object model incident

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410096513.7A CN104915190A (en) 2014-03-14 2014-03-14 Browser synchronization method and device based on document object model incident

Publications (1)

Publication Number Publication Date
CN104915190A true CN104915190A (en) 2015-09-16

Family

ID=54084275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410096513.7A Pending CN104915190A (en) 2014-03-14 2014-03-14 Browser synchronization method and device based on document object model incident

Country Status (1)

Country Link
CN (1) CN104915190A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000544A (en) * 2007-01-16 2007-07-18 华为技术有限公司 Event distributing method and device based on Web page
CN103618701A (en) * 2013-11-14 2014-03-05 北京奇虎科技有限公司 Method and browser for performing webgame interaction
CN103618766A (en) * 2013-11-14 2014-03-05 北京奇虎科技有限公司 Method and webgame interaction server for performing webgame interaction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000544A (en) * 2007-01-16 2007-07-18 华为技术有限公司 Event distributing method and device based on Web page
CN103618701A (en) * 2013-11-14 2014-03-05 北京奇虎科技有限公司 Method and browser for performing webgame interaction
CN103618766A (en) * 2013-11-14 2014-03-05 北京奇虎科技有限公司 Method and webgame interaction server for performing webgame interaction

Similar Documents

Publication Publication Date Title
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US20140258409A1 (en) Method, server and browser for pushing message actively
CN102811261B (en) Information transmission method, device, system, terminal and server
CN104125206B (en) The hardware environment adaptation method of a kind of client, device, server and system
CN103491172A (en) Method and system for sharing cloud file
CN105530535A (en) Method and system capable of realizing multi-person video watching and real-time interaction
CN105205072B (en) The methods of exhibiting and system of webpage information
CN103064732A (en) Method for taking over third-party application messages through message manager
CN101969463A (en) Method for realizing whiteboard full-screen synchronization on web page
US20150172240A1 (en) Content sharing scheme
CN103177015A (en) Method and system for webpage image presentation
CN103401854A (en) Social network service-based television content sharing method
WO2017059727A1 (en) Self-adaptive data display method, terminal device and server
CN107566492A (en) A kind of implementation method of web terminal message push
CN102130844A (en) Method and system for acquiring Web chat logs
US20130138770A1 (en) Apparatus and method for sharing web contents using inspector script
CN103856543A (en) Method for processing video, mobile terminal and server
CN101888346A (en) Remote control method of electronic equipment
CN104639973B (en) Information pushing method and device
CN107423446B (en) New media automation trusted deployment system and method based on cloud storage
CN103118119A (en) Method for collaboratively browsing web pages, mobile communication terminal and large-screen browser
CN111212043A (en) Multimedia file generation method and device
CN104156372A (en) Method, devices and system for opening page
CN103024054A (en) Network camera monitoring alarm system and information transmission method thereof
CN102314467A (en) Method for realizing synchronous browsing of web pages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150916