Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for both-way communication between web browser and server

A web browser, two-way communication technology, applied in transmission systems, electrical components, etc., can solve the problem that communication methods cannot be compatible with different web browsers

Active Publication Date: 2014-03-26
TCL CORPORATION
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the deficiencies in the prior art above, the object of the present invention is to provide a method and system for two-way communication between a web browser and a server, aiming at solving the problem that the existing communication methods cannot be compatible with different web browsers

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 and system for both-way communication between web browser and server
  • Method and system for both-way communication between web browser and server
  • Method and system for both-way communication between web browser and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention provides a method and system for two-way communication between a web browser and a server. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0026] see figure 1 , figure 1 A method for two-way communication between a web browser and a server of the present invention, comprising the steps of:

[0027] S101. Call the general API to perform initialization;

[0028] S102. Identify the current operating environment, determine whether the web browser supports html5, and use the Websocket communication method to perform two-way communication with the server if so.

[0029] Among them, the Websocket communication method is an asynchronous communication method between the next-genera...

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 discloses a method and system for both-way communication between a web browser and a server. The method comprises the steps of calling a universal API for initialization, identifying the current operating environment, judging whether the web browser supports html5 or not, and if yes, utilizing the Websocket communication mode to achieve both-way communication between the web browser and the server. The current operating environment is identified, whether the web browser supports html5, a Flash plug-in and iframe or not is judged, and then the Websocket communication mode or the Flashsocket communication mode or the iframe long-connection communication mode or the Ajax long-polling communication mode is selected intelligently, so that the communication method is compatible with various web browsers on the market.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and system for two-way communication between a web browser and a server. Background technique [0002] The web browser has the functions of retrieval query, file service, offline browsing of the heat meter management machine, etc., while the server has the functions of static information distribution and dynamic information distribution, etc. There are many two-way communication methods between the web browser and the server, for example Long polling, long connection, Flashsocket and Websocket and other communication methods, but due to the different types and versions of client web browsers, these communication methods cannot be compatible with different web browsers on the market. Therefore, the prior art still needs to be improved and developed. Contents of the invention [0003] In view of the above-mentioned deficiencies in the prior art, the object of the presen...

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): H04L29/06H04L29/08
Inventor 陈龙
Owner TCL CORPORATION
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More