Browser adaption method and apparatus

A browser and browser-type technology, which is applied in the Internet field, can solve problems that affect the normal operation of program code, and the program code is not easy to maintain and expand, so as to achieve the effect of easy maintenance and expansion, and avoid strong coupling

Inactive Publication Date: 2014-03-12
ZICT TECH CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, as the types of browsers continue to increase, more and more browser adaptation codes are strongly coupled with the original program codes of...

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
  • Browser adaption method and apparatus
  • Browser adaption method and apparatus
  • Browser adaption method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The basic idea of ​​the present invention is: according to the Hypertext Transfer Protocol (HTTP) request that browser sends, determine the type of described browser; An adaptation processing file; loading the adaptation processing file.

[0032] The first embodiment of the browser adaptation method provided by the present invention is applied to Web sites, such as figure 1 As shown, the method includes:

[0033] Step 101, determine the type of the browser according to the HTTP request sent by the browser;

[0034] Step 102. Select an adaptation processing file corresponding to the browser type from several pre-stored adaptation processing files;

[0035] Step 103, loading the adaptation processing file.

[0036] Preferably, the adaptation processing file includes: a style file and a script file, wherein the style file is composed of Cascading Style Sheets (Cascading Style Sheets, CSS) codes, and the script file is composed of JavaScript codes.

[0037] Preferably, ...

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 browser adaption method and apparatus, wherein the method and the apparatus are applied to a web site. The method comprises the following steps: determining a type of a browser according to a hyper text transfer protocol (HTTP) request sent by the browser; selecting an adaption processing file corresponding to the type of the browser from a plurality of prestored adaption processing files; and loading the adaption processing file. According to the invention, a prestored adaption processing file can be loaded according to the demand, thereby avoiding strong coupling between the original procedure code and the adaption processing file.

Description

technical field [0001] The invention relates to Internet technology, in particular to a browser adaptation method and device. Background technique [0002] Usually, a PC initiates a Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP) request to a Web site through a browser, and the Web site returns a web page file to the browser according to the received request, and the web page file is based on the hypertext transfer protocol. A text file written in a text markup language (Hypertext Markup Language, HTML), where the text file includes various tags. The browser parses the various tags in the received page file according to the preset tag interpretation, and displays the web page content obtained by parsing. [0003] With the continuous development of Internet technology, the types of browsers continue to increase. At present, browsers mainly include IE, Firefox, Chrome, Safari, Opera, etc. Different browsers have different pre-set tag interpretations, that is...

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): H04L29/08
Inventor 吴鸿杰李江涛田睿吴振宇张弛
Owner ZICT TECH 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