CN101546310B - Method for improving web page compatibility as well as correlative electronic device and web page access system - Google Patents

Method for improving web page compatibility as well as correlative electronic device and web page access system Download PDF

Info

Publication number
CN101546310B
CN101546310B CN2008100841942A CN200810084194A CN101546310B CN 101546310 B CN101546310 B CN 101546310B CN 2008100841942 A CN2008100841942 A CN 2008100841942A CN 200810084194 A CN200810084194 A CN 200810084194A CN 101546310 B CN101546310 B CN 101546310B
Authority
CN
China
Prior art keywords
program code
web page
web browser
webpage
decipher
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2008100841942A
Other languages
Chinese (zh)
Other versions
CN101546310A (en
Inventor
萧郁欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wistron Corp
Original Assignee
Wistron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wistron Corp filed Critical Wistron Corp
Priority to CN2008100841942A priority Critical patent/CN101546310B/en
Publication of CN101546310A publication Critical patent/CN101546310A/en
Application granted granted Critical
Publication of CN101546310B publication Critical patent/CN101546310B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for improving web page compatibility as well as a correlative electronic device and a web page access system. Particularly, the method for improving the web page compatibility comprises the following steps: receiving an open command output by a client through a web page browser, wherein the open command is used for opening a first web page stored by a web page server; acquiring a first program code of the first web page according to the open command; judging whether the first program code can be interpreted by the web page browser to generate a judgment result; converting the first program code according to the judgment result; and outputting the conversion result of the first program code to the web page browser.

Description

Can promote webpage compatible method and device
Technical field
The present invention relates to a kind of webpage compatible method and related electronic device and web page access system of promoting; Relate in particular to a kind of Web page maker's of reduction burden; Improve the efficient of webpage development, and reduce method and the related electronic device and the web page access system of the degree of difficulty of debug.
Background technology
The speed that obtains of information has been accelerated in the continuous development of technique of internet, makes the user to send and receive e-mail, search for data, to browse all kinds of news etc. whenever and wherever possible through opening the mode of webpage.Generally speaking, the mode of opening webpage is that the network address of correspondence is keyed in a web browser, with the content of display web page.Common web browser such as IE, Firefox, Opera etc. all are that program code through the decipher webpage is to open webpage.Yet; Different browsers maybe be different for the support of particular webpage grammer, cause the Web page maker when the design webpage, must be directed against different browsers, design different grammers; Even simple program also can become tediously long, complicated, and increases Web page maker's burden.
For instance; In java event (JavaScript) grammer; Web browser IE supports the ActiveXObject object and does not support the XMLHttpRequest object that other web browsers are supported the XMLHttpRequest object and do not supported the ActiveXObject object.Therefore, when the design webpage, the developer must enumerate out with all possible situation, why judges the employed web browser of user earlier, to load correct grammer, avoids producing the problem that webpage can't be opened.
Therefore, in known technology, the Web page maker must consider that the different web pages browser supports the problem of different grammers, and in order to reach the same web page effect, the Web page maker possibly develop the above grammer of a cover.In addition, in design during webpage, the Web page maker possibly can't understand fully that each browser is supported and unsupported grammer; If after design is accomplished, just finding has compatible problem, then need find out incompatible grammer earlier, seek alternative again, not only reduce the efficient of webpage development, also can increase the degree of difficulty of debug.
Summary of the invention
Therefore, fundamental purpose of the present invention promptly is to provide a kind of webpage compatible method and related electronic device and web page access system of promoting.
The present invention discloses a kind of compatible method of webpage that promotes, and includes to receive the open command that a user side is exported through a web browser, and this open command is used for opening one first stored webpage of a web page server; According to this open command, obtain one first program code of this first webpage; Judge whether this first program code can be by this web browser institute decipher, to produce a judged result; According to this judged result, change this first program code; And the transformation result of exporting this first program code is to this web browser.
The present invention discloses a kind of compatible electronic installation of webpage that promotes, and includes a user side interface, is coupled to a user side; One server end interface is coupled to a web page server; One command reception unit is coupled to this user side interface, is used for receiving the open command that this user side is exported through a web browser through this user side interface, and this open command is used for opening one first stored webpage of this web page server; One reading unit is coupled to this command reception unit and this server end interface, is used for according to this open command, through this server end interface, is obtained one first program code of this first webpage by this web page server; One judging unit is coupled to this command reception unit and this reading unit, is used for judging whether this first program code can be by this web browser institute decipher, to produce a judged result; One converting unit is coupled to this judging unit and this reading unit, is used for according to this judged result, changes this first program code; And an output unit, being coupled to this converting unit and this user side interface, the transformation result that is used for exporting this first program code is to this web browser.
The present invention discloses a kind of compatible web page access system of webpage that promotes, and includes a web page server, is used for storing the web page program code that is compiled with a specific syntax; A plurality of ustomer premises access equipments are used for reading the stored web page program code of this web page server through a web browser respectively; And one browser change compatible device.This browser is changed compatible device and is included a user side interface, is coupled to this a plurality of ustomer premises access equipments; One server end interface is coupled to this web page server; One command reception unit; Be coupled to this user side interface; Be used for through this user side interface; Receive the open command that one first ustomer premises access equipment of these a plurality of ustomer premises access equipments is exported through the web browser of correspondence, this open command is used for opening one first stored webpage of this web page server; One reading unit is coupled to this command reception unit and this server end interface, is used for according to this open command, through this server end interface, is obtained one first program code of this first webpage by this web page server; One judging unit is coupled to this command reception unit and this reading unit, is used for judging whether this first program code can be by the employed web browser decipher of this first ustomer premises access equipment, to produce a judged result; One converting unit is coupled to this judging unit and this reading unit, is used for according to this judged result, changes this first program code; And an output unit, being coupled to this converting unit and this user side interface, the transformation result that is used for exporting this first program code is to this first ustomer premises access equipment.
Description of drawings
Fig. 1 is the synoptic diagram of a flow process of the embodiment of the invention.
Fig. 2 is the synoptic diagram of a java event conversion table of the embodiment of the invention.
Fig. 3 is the synoptic diagram of a web page access system of the embodiment of the invention.
Fig. 4 changes the preferred embodiment synoptic diagram of compatible device for a browser among Fig. 3.
The primary clustering symbol description:
10 flow processs
100,102,104,106,108,110,112 steps
20 java event conversion tables
200 first hurdles
202 second hurdles
30 web page access systems
300 web page servers
40 browsers are changed compatible device
UE_1~UE_n ustomer premises access equipment
400 user side interfaces
402 server end interfaces
404 command reception unit
406 reading units
408 judging units
410 converting units
412 output units
Embodiment
Please refer to Fig. 1, Fig. 1 is the synoptic diagram of a flow process 10 of the embodiment of the invention.Flow process 10 is used for promoting the webpage compatibility, and it comprises following steps:
Step 100: beginning.
Step 102: receive the open command that a user side is exported through a web browser, this open command is used for opening one first stored webpage of a web page server.
Step 104:, obtain one first program code of this first webpage according to this open command.
Step 106: judge whether this first program code can be by this web browser institute decipher, to produce a judged result.
Step 108:, change this first program code according to this judged result.
Step 110: the transformation result of exporting this first program code is to this web browser.
Step 112: finish.
According to flow process 10, the present invention is when user side is opened a webpage through a web browser, judges whether the program code corresponding to this webpage can be changed the program code of this webpage by this web browser institute decipher according to this in the server earlier.In other words, when the user opened a webpage, the present invention judged earlier whether the type of the employed web browser of user supports the grammer of the program code of this webpage.Preferably, when the type of the employed web browser of user can't be supported the grammer of program code of this webpage, the present invention was converted into suitable program code, to meet the type of the employed web browser of user; On the contrary, when the type of the employed web browser of user can be supported the grammer of program code of this webpage, the present invention can directly export and not change.
Therefore, through flow process 10, if the program code of a webpage is can't be by the decipher of the web browser of correspondence institute the time, the present invention is for can be by the program code of this web browser institute decipher with the program code conversion of this webpage.Under this situation; The Web page maker only need develop to the type of a particular webpage browser when the exploitation webpage, and need not consider that each browser is supported and unsupported grammer, thereby can reduce Web page maker's burden; Improve the efficient of webpage development, and reduce the degree of difficulty of debug.
What pay special attention to is that in the present invention, the web page program code can meet Java grammer or other grammers, and is not limited thereto.In addition, the present invention also can set up a conversion table or question blank in advance, to the grammer that the different web pages browser is supported, conversion regime fast is provided.For instance, please refer to Fig. 2, Fig. 2 is the synoptic diagram of the embodiment of the invention one java event conversion table 20.Java event conversion table 20 comprises one first hurdle 200 and one second hurdle 202; The object that first hurdle 200 is supported corresponding to web browser IE; The object that second hurdle 202 is supported corresponding to web browser Firefox, and the object representation of same lines can produce identical webpage effect.Under this situation, the present invention can be according to java event conversion table 20, and the program code conversion of the webpage that server is stored is the type that meets the employed browser of user.Wherein, "-" representes unidirectional conversion, only supports IE to change Firefox like eval () object, and do not support Firefox to change IE.
Realization about flow process 10 please refer to Fig. 3, and Fig. 3 is the synoptic diagram of a web page access system 30 of the embodiment of the invention.Web page access system 30 includes a web page server 300, a browser is changed compatible device 40 and ustomer premises access equipment UE_1~UE_n.Web page server 300 is used for storing the web page program code that is compiled with a specific syntax.Ustomer premises access equipment UE_1~UE_n can be notebook computer, desktop PC, PDA, smart phone electronic installations such as (Smartphone), reads the stored web page program code of web page server 300 in order to the web browser through correspondence.Browser is changed compatible device 40 realization flows 10; When reading the stored web page program code of web page server 300 at ustomer premises access equipment UE_1~UE_n; According to the type of the employed web browser of ustomer premises access equipment UE_1~UE_n, be suitable grammer with web page server 300 stored web page program code conversions.For instance, if the grammer of the stored web page program code of web page server 300 meets web browser IE, ustomer premises access equipment UE_1 uses web browser IE, and ustomer premises access equipment UE_n uses web browser Firefox.When ustomer premises access equipment UE_1 reads the stored web page program code of web page server 300, browser is changed compatible device 40 and can not carried out syntax conversion and directly export ustomer premises access equipment UE_1 to; And read the stored web page program code of web page server 300 as ustomer premises access equipment UE_n; It can be the form that meets web browser Firefox with the syntax conversion of web page program code that browser is changed compatible device 40, makes ustomer premises access equipment UE_n can correctly read the stored web page program code of web page server 300.Under this situation; The Web page maker only need develop to the type (in this example, being IE) of a particular webpage browser when the exploitation webpage; And need not consider that each browser is supported and unsupported grammer; Thereby can reduce Web page maker's burden, improve the efficient of webpage development, and reduce the degree of difficulty of debug.
Please continue with reference to figure 4, Fig. 4 changes the preferred embodiment synoptic diagram of compatible device 40 for browser among Fig. 3.Browser is changed compatible device 40 and can be integrated in the web page server 300, and it includes a user side interface 400, a server end interface 402, a command reception unit 404, a reading unit 406, a judging unit 408, a converting unit 410 and an output unit 412.User side interface 400 is coupled to ustomer premises access equipment UE_1~UE_n, is used for and ustomer premises access equipment UE_1~UE_n swap data.Server end interface 402 is coupled to web page server 300, is used for and web page server 300 swap datas.Command reception unit 404 is coupled to user side interface 400; Be used for through user side interface 400; Receive the open command that the ustomer premises access equipment of ustomer premises access equipment UE_1~UE_n is exported through the web browser of correspondence, in order to open one first stored webpage of web page server 300.Reading unit 406 is coupled between command reception unit 404 and the server end interface 402, is used for according to this open command, through server end interface 402, is obtained one first program code of this first webpage by web page server 300.Judging unit 408 is coupled to command reception unit 404 and reading unit 406, is used for judging whether this first program code can be by the decipher of web browser institute.Converting unit 410 is coupled to judging unit 408 and reading unit 406, is used for the judged result that produced according to judging unit 408, changes this first program code.Output unit 412 is coupled to converting unit 410 and user side interface 400, and the transformation result that is used for exporting this first program code is to corresponding ustomer premises access equipment.
Therefore, change compatible device 40 by browser, when command reception unit 404 receives the user when opening the instruction of a webpage through user side interface 400, reading unit 406 can read the stored data of web page server 300 through server end interface 402.Simultaneously, judging unit 408 can judge whether the type of the employed web browser of user supports the grammer of the program code of this webpage.Preferably, when the type of the employed web browser of user can't be supported the grammer of program code of this webpage, converting unit 410 was converted into suitable program code, to meet the type of the employed web browser of user; On the contrary, when the type of the employed web browser of user can be supported the grammer of program code of this webpage, converting unit 410 was not changed and is directly exported the user to through output unit 412.
On the other hand; Change in the compatible device 40 at browser, the present invention also can set up a conversion table or question blank in advance, java event conversion table 20 as shown in Figure 2; Grammer in order to be supported to the different web pages browser provides converting unit 410 conversion regime fast.
In sum, the present invention is when the program code of a webpage can't be by the decipher of the web browser of correspondence institute, is can be by the program code of this web browser institute decipher with the program code conversion of this webpage.Under this situation; The Web page maker only need develop to the type of a particular webpage browser when the exploitation webpage, and need not consider that each browser is supported and unsupported grammer, thereby can reduce Web page maker's burden; Improve the efficient of webpage development, and reduce the degree of difficulty of debug.
The above is merely preferred embodiment of the present invention, and all equivalent variations and modifications of being done according to claim scope of the present invention all should belong to covering scope of the present invention.

Claims (7)

1. one kind promotes the compatible method of webpage, comprising:
Receive the open command that a user side is exported through a web browser, said open command is used for opening one first stored webpage of a web page server;
According to said open command, obtain one first program code of said first webpage;
Judge that said first program code whether can be by the decipher of said web browser institute, to produce a judged result;
According to said judged result, change said first program code; And
Export transformation result to the said web browser of said first program code;
The operation of wherein changing said first program code according to said judged result is when said first program code of said judgment result displays can't be by the decipher of said web browser institute, is can be by one second program code of said web browser institute decipher with said first program code conversion;
The operation of wherein changing said first program code according to said judged result is when said first program code of said judgment result displays can be by the decipher of said web browser institute, exports said first program code.
2. the method for claim 1, the operation that wherein receives the said open command that said user side exports through said web browser comprises the type of judging said web browser.
3. the method for claim 1, wherein said first program code meets the Java grammer.
4. one kind promotes the compatible device of webpage, comprising:
Be used to receive a command reception unit of the open command that a user side exports through a web browser, said open command is used for opening one first stored webpage of a web page server;
Be used for according to said open command, obtain a reading unit of one first program code of said first webpage;
Be used to judge that said first program code whether can be by the decipher of said web browser institute, to produce a judging unit of a judged result;
Be used for according to said judged result, change a converting unit of said first program code; And
Be used to export an output unit of the transformation result of said first program code to said web browser;
Wherein said converting unit is can be by one second program code of said web browser institute decipher with said first program code conversion when said first program code of said judgment result displays can't be by the decipher of said web browser institute;
Wherein said converting unit is exported said first program code when said first program code of said judgment result displays can be by the decipher of said web browser institute.
5. device as claimed in claim 4, wherein said command reception unit also is used for judging the type of said web browser.
6. device as claimed in claim 4, wherein said first program code meets the Java grammer.
7. device as claimed in claim 4, said device is integrated in the said web page server.
CN2008100841942A 2008-03-28 2008-03-28 Method for improving web page compatibility as well as correlative electronic device and web page access system Expired - Fee Related CN101546310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100841942A CN101546310B (en) 2008-03-28 2008-03-28 Method for improving web page compatibility as well as correlative electronic device and web page access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100841942A CN101546310B (en) 2008-03-28 2008-03-28 Method for improving web page compatibility as well as correlative electronic device and web page access system

Publications (2)

Publication Number Publication Date
CN101546310A CN101546310A (en) 2009-09-30
CN101546310B true CN101546310B (en) 2012-01-04

Family

ID=41193451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100841942A Expired - Fee Related CN101546310B (en) 2008-03-28 2008-03-28 Method for improving web page compatibility as well as correlative electronic device and web page access system

Country Status (1)

Country Link
CN (1) CN101546310B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354484A (en) * 2015-07-16 2017-01-25 中兴通讯股份有限公司 Browser compatibility method and browser
CN105447107A (en) * 2015-11-13 2016-03-30 小米科技有限责任公司 Webpage access method, apparatus and system
CN105915508B (en) * 2016-04-07 2020-06-12 广西新章物电防伪技术开发有限公司 B/S/S mode electronic signature system of non-middleware technology and signature method thereof
CN108052573A (en) * 2017-12-07 2018-05-18 联想(北京)有限公司 source file operation method and system
CN110851194B (en) * 2018-08-01 2024-10-18 北京京东尚科信息技术有限公司 Method and device for acquiring code for realizing new interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1445649A (en) * 2002-03-20 2003-10-01 文化传信科技(澳门)有限公司 Data display method and system
CN1604037A (en) * 2004-10-28 2005-04-06 威盛电子股份有限公司 Program coding method and system
CN101103352A (en) * 2005-01-12 2008-01-09 韩国威得淼有限公司 System and method for providing and handling executable web content
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1445649A (en) * 2002-03-20 2003-10-01 文化传信科技(澳门)有限公司 Data display method and system
CN1604037A (en) * 2004-10-28 2005-04-06 威盛电子股份有限公司 Program coding method and system
CN101103352A (en) * 2005-01-12 2008-01-09 韩国威得淼有限公司 System and method for providing and handling executable web content
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server

Also Published As

Publication number Publication date
CN101546310A (en) 2009-09-30

Similar Documents

Publication Publication Date Title
US10452787B2 (en) Techniques for automated document translation
CN101546310B (en) Method for improving web page compatibility as well as correlative electronic device and web page access system
CN102819561B (en) Picture display method and device based on webpage
CN102298599A (en) Method and system for browsing web pages in offline state
CN101465866B (en) Method for accessing WAP network based on Web terminal and transition module
CN101567065A (en) Cross-platform online file editing system and method thereof
CN102291437A (en) System and method for realizing application of cross-platform internet
CN102314516B (en) Webpage processing method and mobile terminal and electronic device thereof
US8867076B2 (en) Installing printer applications on a printer using messages
CN109684580A (en) A kind of methods of exhibiting and electronic equipment of dynamic page
CN101533410A (en) Widget content buffering method facing mobile terminal
CN102043622A (en) Basic software general configurator for electronic controllers
CN103970839A (en) Method for controlling webpage browsing through voice
TWI420327B (en) Method and related apparatus and website accessing system capable of enhancing website capability
CN102982118A (en) Searching method and device based on favorites
CN102193798A (en) Method for automatically acquiring Open application programming interface (API) based on Internet
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN101667121A (en) Feature phone secondary development method and device
CN101533409B (en) Network browser system and control method
CN106598829A (en) Webpage automation test method and apparatus
CN103106194A (en) Mobile terminal language transfer method and mobile terminal thereof
CN103186605A (en) Method for quickly acquiring target company information by using mobile phone
CN103067464B (en) Intelligent terminal method for remote controlling computer and system
CN103838774A (en) Webpage inquiring system and inquiring method thereof
CN101866283B (en) Widget transplanting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120104

Termination date: 20200328

CF01 Termination of patent right due to non-payment of annual fee