Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for communication between browser and web front end, web front end and system

A browser and request event technology, applied in the field of image processing, can solve problems such as occupying memory, polluting namespaces, and large complexity of web front-end development, achieving effective communication and reducing costs.

Active Publication Date: 2019-01-22
TENCENT TECH WUHAN
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] But both of the above two methods have serious disadvantages: the first method requires that the function name passed in needs to correspond to a global function, which is a disaster for an asynchronous interface, because calling an API means that a global variable needs to be generated , which will not only pollute the namespace, but also occupy memory; the second method will invalidate the scope chain in the incoming function body, and the function body can only access global variables, and this corresponds to the window object. At this time, the function body It will not be possible to keep the site, and the existence of these unspoken rules will bring greater complexity to web front-end development

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 communication between browser and web front end, web front end and system
  • Method for communication between browser and web front end, web front end and system
  • Method for communication between browser and web front end, web front end and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0035] The main solution of the embodiment of the present invention is: through the created iframe tag, a communication bridge is established between the web front end and the browser client, through which, the web front end can actively communicate with the browser client, and the browser client The terminal can also actively communicate with the web front-end and retain the function site, thereby realizing effective communication between the web front-end and the browser client, and reducing the cost for developers to learn to use the API.

[0036] like figure 1 as shown, figure 1 It is the system architecture of the communication between the browser and the web front end involved in the solution of the embodiment of the present invention, the system architecture includes: a browser client 102 and a web front end 1...

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 a communication method for a browser and a web front end and the web front end and a system. The method comprises the steps as follows: the web front end responds to an interface call instruction, and generates an id for marking a request event corresponding to the interface call instruction; the web front end obtains interface parameters of the request event according to the interface call instruction; the web front end stores the request event, the id and the interface parameters into a global variable command queue; the web front end transmits the global variable command queue to the browser; and the browser reads the request event, the id and the interface parameters from the global variable command queue after receiving the global variable command queue and processes the request event. By the communication method for the browser and the web front end, the web front end can actively communicate with a browser client; and the browser client can also actively communicate with the web front end and can preserve a function field, so that effective communication between the web front end and the browser client is achieved; and the cost of learning and using an API by a developer is reduced.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a method for communicating between a browser and a web front end, a web front end and a system. Background technique [0002] At present, the browsers running on the ios system are based on the Safari kernel, and the web front-end cannot directly use the API provided by the browser client, that is, the web front-end lacks a mechanism for actively communicating with the browser client. [0003] For the browser client, you can access the global javascript code of the web front end. The browser client usually uses the following two methods to access the javascript code of the web front end: execute the function corresponding to the global function name passed in by the web front end, or execute the function passed in by the web front end. The input function body. [0004] But both of the above two methods have serious disadvantages: the first method requires that the funct...

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 Patents(China)
IPC IPC(8): G06F9/54G06F16/958
Inventor 于小军田淑宁夏李曾亮薄川川
Owner TENCENT TECH WUHAN