Device and method for intensively controlling WEB page event and state

A page event and centralized control technology, applied in the field of WEB development, can solve the problems of reducing operating efficiency and increasing the workload of developers, and achieve the effects of improving operating efficiency, reducing work difficulty, and reducing the amount of code

Inactive Publication Date: 2012-09-05
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

That is to say, no matter it is any control, if you want to achieve the same business logic (that is, hide), you must perform the above-mentioned series of operations on this

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
  • Device and method for intensively controlling WEB page event and state
  • Device and method for intensively controlling WEB page event and state
  • Device and method for intensively controlling WEB page event and state

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0058] Implementation mode one:

[0059] For control A, the business requires that it can be dragged and dropped. At this time, the mouse down operation is performed on A first, the event monitoring unit captures the mousedown event, and the event distribution unit distributes the mousedown event to control A. Since control A can perform drag operations, control A is in the mousedown event processing function Send a drag request to this device. This process can be described in the following pseudo code:

[0060]

[0061] If the request is successful, the state management unit will change the record of the corresponding state variable in the state memory, so that the device enters a special drag mode. At this time, a mouse movement operation occurs on A, and the event monitoring unit captures mousemove, and the composite event generation unit is based on the state The variable recording generates a dragmove event, and the event distribution unit distributes the dragmove event to co...

Example Embodiment

[0063] Implementation mode two:

[0064] There are two controls A and B. Control B is the currently activated control. At this time, a mouse down operation occurs on control A. The event monitoring unit captures the mousedown event, and the composite event generation unit generates onblur / onfocus events based on state variables. , The event distribution unit will successively send mousedown events to the A control, onblur events to the B control and its parent control, and onfocus events to the A control and its parent control. The state management unit changes the record of the state variable in the state memory and changes the current The activated control is changed to A.

[0065] Please refer to image 3 , image 3 Schematic diagram of the method flow for centralized control of WEB page events and status. Methods for centralized control of WEB page events and status include:

[0066] Step 201: Obtain a browser event, which is an event captured from a browser document object o...

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 provides a device and a method for intensively controlling a WEB page event and a state. The device for intensively controlling the WEB page event and the state comprises an event monitoring unit, a compound event generating unit, an event distributing unit and a state managing unit, wherein the event monitoring unit is used for obtaining a browser event and the browser event is an event captured from a browser file object or an event submitted by a control module request; the compound event generating unit is used for reading a state variable from a state storage and generating a compound event according to the state variable and the browser event; the event distributing unit is used for sending the browser event or the compound event to a corresponding control to be processed; and the state managing unit is used for updating a record of the state variable in the state storage. According to the invention, the intensive management on events on a framework layer is realized, so that a mechanism which takes single control as a unit to carry out event management is avoided; the condition that a developer needs to define a set of event processing flow to each control is avoided and the working difficulty of the developer is well relieved; and meanwhile, a code amount of the whole system is reduced and the operation efficiency of the system can be improved.

Description

【Technical field】 [0001] The invention relates to the field of WEB development, in particular to a device and method for centrally controlling WEB page events and states. 【Background technique】 [0002] With the development of WEB applications more and more deeply, the development of web pages on the website is also becoming more and more complicated. Nowadays, web pages that can interact with users can be seen everywhere, and the realization of this function depends on HTML events and event processing mechanisms. [0003] The operations generated when the user interacts with the web page are called events. The event can be triggered by the user, or it may be triggered by a page change, and there are even events invisible to the user (such as Ajax interaction progress change). Most of the events are triggered by the user's actions, such as: the user presses the mouse button, a click event is generated, if the mouse pointer moves on the link, a mouseover event is generated, ...

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
IPC IPC(8): G06F9/44
Inventor 欧阳先伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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