Method for selectively preventing event transfer based on parameter event pointing feature during browser DOM event transfer and application

A selective, browser-based technology, applied in inter-program communication, multi-program device, program control device, etc., can solve the problems of timer reset variable V uncertainty, global variable pollution, etc., and achieve high method certainty , Easy to use, easy to use

Pending Publication Date: 2022-04-15
中电云计算技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This method can prevent the execution of the specified event without preventing the transmission of the event flow, but this method will cause global variable pollution, and there is uncertainty in relying on the timer to reset the variable V

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for selectively preventing event transfer based on parameter event pointing feature during browser DOM event transfer and application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] Embodiment 1: A method for selectively preventing event delivery based on the parameter event pointing feature of browser DOM event delivery. information, and by detecting the custom information in the subsequent event delivery process, the execution of the specified event is selectively prevented, but the normal delivery of the event flow is not prevented, thereby achieving the purpose of selectively preventing the event delivery.

[0025] For example, in the following scenario (see figure 1 ):

[0026] A1 and A2 are recursive elements, and A1 and A2 respectively include third-party plug-in generation elements B1 and B2. When the A2 element and its child elements are clicked, the A2 element is marked as currently selected; when the A1 element and its child elements are clicked (the A2 element and its child elements are not included at this time), the A1 element is marked as the currently selected; When the B1 element is clicked, it will be marked in blue, and when th...

Embodiment 2

[0029] Embodiment 2: A computer-readable storage medium for selectively preventing the delivery of an event, the computer-readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the selection described in Embodiment 1 method to prevent event delivery.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of information transmission technologies and computer software, in particular to a method for selectively preventing event transfer based on parameter event pointing characteristics during browser DOM event transfer. According to the method, based on the characteristic that the parameter event points to the same reference when the browser DOM event is transmitted, the event is used for transmitting the custom information, and the execution of the specified event is selectively stopped by detecting the custom information in the next event transmission process, but the normal transmission of the event flow is not stopped, so that the user experience is improved. Therefore, the event transfer of the third-party component is not damaged, and the purpose of selectively stopping the event transfer is achieved; by means of the method, global variable pollution is not caused, the current state is not exposed, implementation of the method does not depend on a timer, high method certainty is achieved, the method is easy and convenient to use, user-defined information is generated along with event, resetting and clearing do not need to be considered, and convenience is provided for use of a user.

Description

technical field [0001] The invention relates to the fields of information engineering, information transmission technology and computer software, in particular to a method for selectively preventing event transmission based on a parameter event pointing feature of browser DOM event transmission and its use. Background technique [0002] When a browser DOM event is triggered, it will go through the event capture stage from the root element to the leaf element that triggers the event, and then go through the event bubbling stage from the leaf element that triggers the event to the root element. In some cases, we want this series of events to be triggered only on the specified element, not on its ancestor elements (bubbling phase) or descendant elements (capturing phase), then we need to prevent the delivery of events. [0003] There are two commonly used methods to prevent event transmission, but both have certain limitations and technical defects, which cause many obstacles a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/54
Inventor 王利
Owner 中电云计算技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products