Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Encapsulation method of browser control part and device thereof

A technology of browser control and encapsulation method, which is applied in the field of network communication, can solve the problems of difficulty in memory identification, addition, and weak integration of client code, and achieve the effect of flexible mapping relationship and improved scalability

Active Publication Date: 2010-02-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] From the solutions disclosed above, it can be seen that in the browser control package application of the prior art, the integration with the client code is not strong, and the utilization of scalability is also insufficient; and the prior art implements fixed function identification and its Mapping relationship, so that all mapping relationships are preset and cannot be added dynamically, and it is difficult to remember the logo

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
  • Encapsulation method of browser control part and device thereof
  • Encapsulation method of browser control part and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] In order to better describe the implementation of the present invention, the specific embodiments of the present invention are now described in conjunction with the accompanying drawings, as figure 1 Shown is a schematic flowchart of the browser control encapsulation method provided by Embodiment 1 of the present invention, and the method includes:

[0040] Step 11: Extend the application function interface of the JAVA script and encapsulate the browser control.

[0041] In this step, firstly, by extending the application function interface of the JAVA script, the custom method event can be encapsulated in the browser control. Specifically, during encapsulation, parameters and function descriptions of corresponding events may be added to the JAVA script application function interface, and the custom method event may be encapsulated in the browser control.

[0042] In a specific implementation process, the browser may be Microsoft browser IE, or other types of browsers,...

Embodiment 2

[0089] Embodiment 2 of the present invention provides a browser control packaging device, such as figure 2 Shown is a schematic structural diagram of the device provided in Embodiment 2. The device includes a browser encapsulation unit, an identifier assignment unit, a parameter acquisition unit, and an execution processing unit, wherein:

[0090] The browser encapsulation unit is used for encapsulating the custom method event in the browser control by extending the application function interface of the JAVA script.

[0091] The identifier assigning unit is used for invoking a corresponding function mapper to assign a corresponding identifier to the function of the custom method event when the browser invokes the application function interface through a JAVA script.

[0092] The parameter obtaining unit is used to obtain the function of the user-defined method event and the parameters of the function through the identifier assigned by the identifier assigning unit.

[0093] ...

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 embodiment of the invention provides an encapsulation method of a browser control part and a device thereof. The method comprises the following steps of: encapsulating a defined method event intothe browser control part by spreading an application function interface of a JAVA script; when the browser calls the application function interface by the JAVA script, calling a corresponding functionmapping device to distribute corresponding identification for the function of the defined method event by the browser control part; obtaining the function of the defined method event and the parameter of the function by the identification; and according to the function of the defined method event and the parameter of the function, calling the corresponding application function interface to execute the defined method event. By implementing the technical scheme, the invention can lead the browser control part and a customer end to be better integrated, and improves expansibility; and all the application program interfaces can be dynamically added, and the mapping relationship of the function identification is more flexible.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a browser control encapsulation method and device. Background technique [0002] At present, the encapsulation of browser controls has been applied in many occasions. Take Microsoft's IE browser controls as an example, such as the encapsulation of Microsoft browser IE controls by CHtmlview in the Microsoft MFC class library. Let's illustrate by using the JAVA script JavaScript to call the window.external.api_myfunction function once. The function call process of the prior art solution is as follows: [0003] Step 1: JavaScript calls the function interface window.external.api_myfunction; [0004] Step 2: The IE browser control calls the IDispatch::GetIDsOfNames method to obtain the id corresponding to the function name. If the function name mapping relationship is not implemented, the browser control will not process this method; [0005] Step 3: The IE browser control calls...

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 TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products