CN105005596A - Page display method and page display device - Google Patents

Page display method and page display device Download PDF

Info

Publication number
CN105005596A
CN105005596A CN201510381438.3A CN201510381438A CN105005596A CN 105005596 A CN105005596 A CN 105005596A CN 201510381438 A CN201510381438 A CN 201510381438A CN 105005596 A CN105005596 A CN 105005596A
Authority
CN
China
Prior art keywords
page
source code
page source
amended
script
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.)
Granted
Application number
CN201510381438.3A
Other languages
Chinese (zh)
Other versions
CN105005596B (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.)
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Original Assignee
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
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 Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen filed Critical Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Priority to CN201510381438.3A priority Critical patent/CN105005596B/en
Publication of CN105005596A publication Critical patent/CN105005596A/en
Application granted granted Critical
Publication of CN105005596B publication Critical patent/CN105005596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page display method, which comprises the following steps of: when a page access request is received, forwarding the received page access request to a preset server; receiving first page source code returned by the preset server; executing the first page source code to obtain second page source code of a page corresponding to the page access request, and adding a first preset script into the second page source code; and executing the modified second page source code to show the page embedded with preset network information. The invention also discloses a page display device. The page display method and the page display device have the advantage that a network access server can improve the work stability on the premise of meeting the network information pushing requirement.

Description

Page display method and device
Technical field
The present invention relates to Internet technical field, particularly relate to page display method and device.
Background technology
At present, wireless network access services has become one of basic service that all trades and professions provide for client, and often all provides free.When the wireless network access services accession page that client is provided by service provider, the page of its access is embedded with the network information of service provider's propelling movement, such as advertisement, recruitment information etc. usually.The network information that service provider pushes pushes for different user orientation, and by the propelling movement of these network informations, service provider can obtain certain return.In prior art, the mode of usual employing server agent carries out the propelling movement of the network information: when receiving the accessing page request that browser sends, network access server obtains the page source code of the corresponding page, and the default network information or the script that is used for obtaining the default network information are embedded in the page source code of acquisition, amended page source code is back to browser, resolve for it and perform, so that the page being embedded with the default network information is presented to user.But the aforementioned amendment to page source code will take a large amount of process resource of network access server and memory source, affects the stability of its work.In prior art, there is network access server causes job insecurity problem because of network information push.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of page display method, is intended to make network access server under the prerequisite meeting network information push demand, can improve the stability of work.
For achieving the above object, a kind of page display method provided by the invention comprises:
When receiving accessing page request, the accessing page request received is forwarded to preset service device;
Receive the first page source code that described preset service device returns;
Perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code;
Perform amended second page source code, to present the page being embedded with the default network information.
Preferably, amended second page source code of described execution, before the step presenting the page being embedded with the default network information, described page display method, also comprises:
Whether identically with the coding of amended second page source code analyze present encoding;
When present encoding is identical with the coding of amended second page source code, proceeds to and perform amended second page source code of described execution, to present the step of the page being embedded with the default network information.
Preferably, after the step whether described analysis present encoding is identical with the coding of amended second page source code, described page display method.Also comprise:
When present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code.
Preferably, described first page source code comprises second and presets script, the described first page source code of described execution, to obtain the second page source code of the corresponding page of described accessing page request, and comprises the step that the first default script is added in described second page source code:
Perform described second and preset script, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script; Described mainurl is the url of the corresponding page of described accessing page request;
Using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.
Preferably, script is preset in described execution described second, comprises to obtain the described second step presetting the source code of the homepage URL(uniform resource locator) mainurl sensing page in script:
Whether the sensing page analyzing described mainurl is jump page;
If so, the page source code of the target pages of redirect is then obtained;
If not, then the page source code of the sensing page of described mainurl is obtained.
In addition, for achieving the above object, the present invention also provides a kind of page display device, comprising:
Forwarding module, for when receiving accessing page request, is forwarded to preset service device by the accessing page request received;
Receiver module, for receiving the first page source code that described preset service device returns;
Adding module, for performing described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script being added in described second page source code;
Display module, for performing amended second page source code, to present the page being embedded with the default network information.
Whether preferably, described page display device, also comprises analysis module, identical with the coding of amended second page source code for analyzing present encoding;
Described display module, also for when present encoding is identical with the coding of amended second page source code, proceeds to and performs amended second page source code of described execution, to present the step of the page being embedded with the default network information.
Preferably, described page display device, also comprises modified module, for when present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code.
Preferably, described first page source code comprises second and presets script, and described interpolation module also presets script for performing described second, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script; Described mainurl is the url of the corresponding page of described accessing page request; And using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.
Preferably, described interpolation module is also for analyzing whether the sensing page of described mainurl is jump page; If so, the page source code of the target pages of redirect is then obtained; If not, then the page source code of the sensing page of described mainurl is obtained.
The accessing page request received, by when receiving accessing page request, is forwarded to preset service device by the present invention; Receive the first page source code that described preset service device returns; Perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code; Perform amended second page source code, to present the page being embedded with the default network information.Compared to prior art, replace network access server to complete the amendment of page source code by browser, reduce the burden of network access server, make network access server under the prerequisite meeting network information push demand, the stability of work can be improved.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of page display method first embodiment of the present invention;
Fig. 2 is the refinement schematic flow sheet of S30 in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of S31 in Fig. 2;
Fig. 4 is the high-level schematic functional block diagram of page display device first embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of page display method, with reference to Fig. 1, in the first embodiment of page display method of the present invention, described page display method comprises the following steps:
S10, when receiving accessing page request, is forwarded to preset service device by the accessing page request received;
The page display method that the present embodiment provides is mainly used in network information push, such as, in the Radio Access Network that service provider provides, network access server is replaced to complete the amendment of page source code by the browser of user side this locality, and perform amended page source code, for user presents the page being embedded with the default network information.
Particularly, the accessing page request received, when receiving the accessing page request of user's input, is forwarded to preset service device by browser; Wherein, user can any link triggering page request of access of click browser current display page; Or directly at the URL of browser address bar input for accession page, triggering page request of access; Described preset service device is preferably the current network access server providing network insertion to serve for browser place user terminal, such as, for user terminal provides the radio network ac-cess server of wireless network access services.
S20, receives the first page source code that described preset service device returns;
Described preset service device is after the accessing page request receiving browser forwarding, and return first page source code to browser, the page that described first page source code is corresponding is the processing page of pushing network information.
In addition, described preset service device, after the accessing page request receiving browser forwarding, also directly can return the page source code of the corresponding page of its accessing page request received, manifest the page not having the embedded default network information for browser.
S30, performs described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and is added in described second page source code by the first default script;
It should be noted that, page source code, also referred to as source code, source program.Referring to whole sound code files of text codes or the page do not compiled, is a series of readable computerese instructions.Browser is by Complied executing page source code, visual content of pages is presented to user, such as, when user is by the browser access page, browser background compilation performs the page source code of this page, for user presents the visual page comprising word, picture, voice and/or video content.
Script is the extension of autoexec, is the program that a kind of plain text is preserved, is the combination that a series of control terminals determined carry out arithmetic operation action, can realizes certain logic branch etc. wherein.Script is exactly briefly the written order of a rule, and these written orders are (check as opened with notepad, edit) that can see.At present, all kinds of script is widely used in Pages Design, because script not only can reduce the scale of the page and improve page loading velocity, and can enrich the performance of the page, as video, sound etc.Such as, when clicking the Email address on the page as user, this kind of mailbox software of user terminal Automatically invoked Outlook Express or Foxmail, realizes by performing the script be embedded in the page source code of the aforementioned page.
In the present embodiment, after receiving the first page source code that described preset service device returns, browser performs described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and is added in described second page source code by the first default script.After browser performs amendment, the second page source code will present the page being embedded with the default network information for user, and namely browser is in the page that the described accessing page request of display is corresponding, shows the described default network information simultaneously.
Above-mentioned first page source code comprises second and presets script, and described second presets script for controlling the process of browser from the second page source code to described second page source code of amendment that obtain the corresponding page of described accessing page request.Particularly, with reference to Fig. 2, step S30 comprises:
S31, performs described second and presets script, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script;
S32, using the page source code of the sensing page of described mainurl as described second page source code, and is added into the first default script in described second page source code.
It should be noted that, described preset service device is receiving the accessing page request of browser forwarding, before the first page source code of the processing page of default pushing network information is sent to browser, the mainurl (homepage URL(uniform resource locator)) in the described second default script is given by URL (Uniform Resource Locator, the URL(uniform resource locator)) assignment of corresponding for the described accessing page request page.
In the present embodiment, browser performs described second and presets script: obtain the page source code (i.e. the page source code of the corresponding page of described accessing page request) that described second presets the sensing page of the mainurl in script; Using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.Wherein, the described first default script obtains for controlling browser and presents the default network information.
S40, performs amended second page source code, to present the page being embedded with the default network information.
After completing the amendment to the second page source code, browser resolves also performs amended second page source code, to present the page being embedded with the default network information, namely browser is in the page that the described accessing page request of display is corresponding, shows the described default network information simultaneously.Particularly, the content of the described default network information, and how to show the described network information, depend on that being added into first in the second page source code presets script, such as, browser, while the corresponding page of the described accessing page request of display, shows advertising message in the bottom of the page.
It should be noted that, browser performs described first and presets script while the described default network information of display, and also correspondingly show X button, user can click described X button as required to close the display of the described default network information.
The page display method that the present embodiment proposes, when receiving accessing page request, is forwarded to preset service device by the accessing page request received; Receive the first page source code that described preset service device returns; Perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code; Perform amended second page source code, to present the page being embedded with the default network information.Compared to prior art, replace network access server to complete the amendment of page source code by browser, reduce the burden of network access server, make network access server under the prerequisite meeting network information push demand, the stability of work can be improved.
Further, based on the first embodiment, propose the second embodiment of page display method of the present invention, in the present embodiment, before above-mentioned steps S40, described page display method, also comprises:
Whether identically with the coding of amended second page source code analyze present encoding; If so, then proceed to and perform step S40.
It should be noted that, when only having the coding of the current employing of browser identical with the coding that page source code adopts, browser could be resolved and perform page source code normally, guarantees that the page shown does not occur mess code.
In the present embodiment, browser, by resolving described second page source code, can get the coded message of described second page source code.Particularly, browser resolves goes out " charset=xxx " field in described second page source code, and " xxx " part is wherein exactly the coding that described second page source code adopts, and conventional coding comprises GB2312, GBK, UTF-8, ISO8859-1 etc.
Further, for guaranteeing that the page can normally show, after the step whether described analysis present encoding is identical with the coding of amended second page source code, described page display method also comprises:
When present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code, proceeds to and perform step S40.
It is easily understood that, when the coding of the current employing of browser is different from the coding of amended second page source code, preferably, the coding of current for browser employing is revised as the coding of amended second page source code, browser normally can be resolved and be performed amended second page source code, normal display page.
In addition, it will be appreciated by persons skilled in the art that can also be the coding of the current employing of browser by the code conversion of amended second page source code, normally resolve for browser and perform amended second page source code, normal display page.
Further, based on the first embodiment, propose the 3rd embodiment of page display method of the present invention, with reference to Fig. 3, in the present embodiment, above-mentioned steps S31 comprises:
S311, whether the sensing page analyzing described mainurl is jump page; Be proceed to and perform S312, otherwise proceed to execution S313;
S312, obtains the page source code of the target pages of redirect;
S313, obtains the page source code of the sensing page of described mainurl.
It should be noted that, in a network, there is so a kind of functional page: jump page, its do not have substantial can reading content, its object existed is, when user accesses this jump page, automatically jumps to target pages.Whether be jump page can refer to prior art execution, repeat no more herein if analyzing the page.
Such as, resolve the page source code of the sensing page of mainurl, find following field:
echo"<meta http-equiv="Refresh"content="yyy;url=zzz">";
Wherein, Refresh represents refreshing, and yyy represents number of seconds (being 0 to refresh immediately), and zzz represents the target pages of redirect.Now identify that the sensing page of mainurl is jump page, obtain the page source code of target pages of redirect, be i.e. the page source code of the sensing page page of access (user expect) of zzz.
The sensing page identifying mainurl if it will be appreciated by persons skilled in the art that, not for jump page, illustrates that the sensing page of current mainurl is that user expects the page of access, now the page source code of the direct sensing page of the described mainurl of acquisition.
The present embodiment can get user accurately by technique scheme and expect the page source code of the page of access, and then can embed the default network information in this page.It should be noted that, because the page that described accessing page request is corresponding may be jump page, user expects the page page corresponding with described accessing page request of access, can difference, also can be identical.
The present invention also provides a kind of page display device, and with reference to Fig. 4, in the first embodiment of page display device of the present invention, a kind of page display device provided by the invention comprises:
Forwarding module 10, for when receiving accessing page request, is forwarded to preset service device by the accessing page request received;
The page display device that the present embodiment provides is mainly used in network information push, such as, in the Radio Access Network that service provider provides, network access server is replaced to complete the amendment of page source code by the browser of user side this locality, and perform amended page source code, for user presents the page being embedded with the default network information.
It should be noted that, page display device provided by the invention is built in browser execution.Particularly, the accessing page request received, when receiving the accessing page request of user's input, is forwarded to preset service device by forwarding module 10; Wherein, user can any link triggering page request of access of click browser current display page; Or directly at the URL of browser address bar input for accession page, triggering page request of access; Described preset service device is preferably the current network access server providing network insertion to serve for browser place user terminal, such as, for user terminal provides the radio network ac-cess server of wireless network access services.
Receiver module 20, for receiving the first page source code that described preset service device returns;
Described preset service device is after the accessing page request receiving forwarding module 10 forwarding, and return first page source code to browser (receiver module 20), the page that described first page source code is corresponding is the processing page of pushing network information.
In addition, described preset service device, after the accessing page request receiving forwarding module 10 forwarding, also directly can return the page source code of the corresponding page of its accessing page request received, manifest the page not having the embedded default network information for browser.
Adding module 30, for performing described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script being added in described second page source code;
It should be noted that, page source code, also referred to as source code, source program.Referring to whole sound code files of text codes or the page do not compiled, is a series of readable computerese instructions.Browser is by Complied executing page source code, visual content of pages is presented to user, such as, when user is by the browser access page, browser background compilation performs the page source code of this page, for user presents the visual page comprising word, picture, voice and/or video content.
Script is the extension of autoexec, is the program that a kind of plain text is preserved, is the combination that a series of control terminals determined carry out arithmetic operation action, can realizes certain logic branch etc. wherein.Script is exactly briefly the written order of a rule, and these written orders are (check as opened with notepad, edit) that can see.At present, all kinds of script is widely used in Pages Design, because script not only can reduce the scale of the page and improve page loading velocity, and can enrich the performance of the page, as video, sound etc.Such as, when clicking the Email address on the page as user, this kind of mailbox software of user terminal Automatically invoked Outlook Express or Foxmail, realizes by performing the script be embedded in the page source code of the aforementioned page.
In the present embodiment, after receiver module 20 receives the first page source code that described preset service device returns, add module 30 and perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code.After browser performs amendment, the second page source code will present the page being embedded with the default network information for user, and namely browser is in the page that the described accessing page request of display is corresponding, shows the described default network information simultaneously.
Above-mentioned first page source code comprises second and presets script, and described second presets script for controlling the process of browser from the second page source code to described second page source code of amendment that obtain the corresponding page of described accessing page request.Particularly, described interpolation module 30 also presets script for performing described second, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script; Described mainurl is the url of the corresponding page of described accessing page request; And using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.
It should be noted that, described preset service device is receiving the accessing page request of forwarding module 10 forwarding, before the first page source code of the processing page of default pushing network information is sent to receiver module 20, the mainurl (homepage URL(uniform resource locator)) in the described second default script is given by URL (Uniform Resource Locator, the URL(uniform resource locator)) assignment of corresponding for the described accessing page request page.
In the present embodiment, add module 30 and perform the described second default script: obtain the page source code (i.e. the page source code of the corresponding page of described accessing page request) that described second presets the sensing page of the mainurl in script; Using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.Wherein, the described first default script obtains for controlling browser and presents the default network information.
Display module 40, for performing amended second page source code, to present the page being embedded with the default network information.
After interpolation module 30 completes the amendment to the second page source code, display module 40 is resolved and is performed amended second page source code, to present the page being embedded with the default network information, namely browser is in the page that the described accessing page request of display is corresponding, shows the described default network information simultaneously.Particularly, the content of the described default network information, and how to show the described network information, depend on that being added into first in the second page source code presets script, such as, display module 40, while the corresponding page of the described accessing page request of display, shows advertising message in the bottom of the page.
It should be noted that, display module 40 performs described first and presets script while the described default network information of display, and also correspondingly show X button, user can click described X button as required to close the display of the described default network information.
The page display device that the present embodiment proposes, when receiving accessing page request, is forwarded to preset service device by the accessing page request received; Receive the first page source code that described preset service device returns; Perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code; Perform amended second page source code, to present the page being embedded with the default network information.Compared to prior art, replace network access server to complete the amendment of page source code by browser, reduce the burden of network access server, make network access server under the prerequisite meeting network information push demand, the stability of work can be improved.
Whether further, based on the first embodiment, propose the second embodiment of page display device of the present invention, in the present embodiment, described page display device, also comprises analysis module, identical with the coding of amended second page source code for analyzing present encoding;
Described display module 40, also for when present encoding is identical with the coding of amended second page source code, proceeds to and performs amended second page source code of described execution, to present the step of the page being embedded with the default network information.
It should be noted that, when only having the coding of the current employing of browser identical with the coding that page source code adopts, browser could be resolved and perform page source code normally, guarantees that the page shown does not occur mess code.
In the present embodiment, analysis module, by resolving described second page source code, can get the coded message of described second page source code.Particularly, analysis module parses " charset=xxx " field in described second page source code, and " xxx " part is wherein exactly the coding that described second page source code adopts, and conventional coding comprises GB2312, GBK, UTF-8, ISO8859-1 etc.
Further, for guaranteeing that the page can normally show, described page display device, also comprises modified module, for when present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code
It is easily understood that, when the coding of the current employing of browser is different from the coding of amended second page source code, preferably, the coding of current for browser employing is revised as the coding of amended second page source code by modified module, browser normally can be resolved and be performed amended second page source code, normal display page.
In addition, it will be appreciated by persons skilled in the art that can also be the coding of the current employing of browser by the code conversion of amended second page source code, normally resolve for browser and perform amended second page source code, normal display page.
Further, based on the first embodiment, propose the 3rd embodiment of page display device of the present invention, in the present embodiment, described interpolation module 30 is also for analyzing whether the sensing page of described mainurl is jump page; If so, the page source code of the target pages of redirect is then obtained; If not, then the page source code of the sensing page of described mainurl is obtained.
It should be noted that, in a network, there is so a kind of functional page: jump page, its do not have substantial can reading content, its object existed is, when user accesses this jump page, automatically jumps to target pages.Whether be jump page can refer to prior art execution, repeat no more herein if analyzing the page.
Such as, add the page source code that module 30 resolves the sensing page of mainurl, find following field:
echo"<meta http-equiv="Refresh"content="yyy;url=zzz">";
Wherein, Refresh represents refreshing, and yyy represents number of seconds (being 0 to refresh immediately), and zzz represents the target pages of redirect.Now add module 30 and identify that the sensing page of mainurl is jump page, obtain the page source code of target pages of redirect, be i.e. the page source code of the sensing page page of access (user expect) of zzz.
It will be understood by those skilled in the art that, if add module 30 to identify that the sensing page of mainurl is not jump page, illustrate that the sensing page of current mainurl is that user expects the page of access, now the page source code of the sensing page of the direct described mainurl of acquisition.
The present embodiment can get user accurately by technique scheme and expect the page source code of the page of access, and then can embed the default network information in this page.It should be noted that, because the page that described accessing page request is corresponding may be jump page, user expects the page page corresponding with described accessing page request of access, can difference, also can be identical.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a page display method, is characterized in that, described page display method comprises:
When receiving accessing page request, the accessing page request received is forwarded to preset service device;
Receive the first page source code that described preset service device returns;
Perform described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script is added in described second page source code;
Perform amended second page source code, to present the page being embedded with the default network information.
2. page display method as claimed in claim 1, is characterized in that, amended second page source code of described execution, and before the step presenting the page being embedded with the default network information, described page display method, also comprises:
Whether identically with the coding of amended second page source code analyze present encoding;
When present encoding is identical with the coding of amended second page source code, proceeds to and perform amended second page source code of described execution, to present the step of the page being embedded with the default network information.
3. page display method as claimed in claim 2, is characterized in that, after the step whether described analysis present encoding is identical with the coding of amended second page source code, and described page display method.Also comprise:
When present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code.
4. page display method as claimed in claim 1, it is characterized in that, described first page source code comprises second and presets script, the described first page source code of described execution, to obtain the second page source code of the corresponding page of described accessing page request, and the step that the first default script is added in described second page source code is comprised:
Perform described second and preset script, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script; Described mainurl is the url of the corresponding page of described accessing page request;
Using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.
5. page display method as claimed in claim 4, is characterized in that, script is preset in described execution described second, comprises to obtain the described second step presetting the source code of the homepage URL(uniform resource locator) mainurl sensing page in script:
Whether the sensing page analyzing described mainurl is jump page;
If so, the page source code of the target pages of redirect is then obtained;
If not, then the page source code of the sensing page of described mainurl is obtained.
6. a page display device, is characterized in that, described page display device comprises:
Forwarding module, for when receiving accessing page request, is forwarded to preset service device by the accessing page request received;
Receiver module, for receiving the first page source code that described preset service device returns;
Adding module, for performing described first page source code, to obtain the second page source code of the corresponding page of described accessing page request, and the first default script being added in described second page source code;
Display module, for performing amended second page source code, to present the page being embedded with the default network information.
7. page display device as claimed in claim 6, whether it is characterized in that, described page display device, also comprises analysis module, identical with the coding of amended second page source code for analyzing present encoding;
Described display module, also for when present encoding is identical with the coding of amended second page source code, proceeds to and performs amended second page source code of described execution, to present the step of the page being embedded with the default network information.
8. page display device as claimed in claim 7, it is characterized in that, described page display device, also comprises modified module, for when present encoding is different from the coding of amended second page source code, present encoding is revised as the coding of amended second page source code.
9. page display device as claimed in claim 6, it is characterized in that, described first page source code comprises second and presets script, described interpolation module also presets script for performing described second, to obtain the page source code that described second presets the sensing page of the homepage URL(uniform resource locator) mainurl in script; Described mainurl is the url of the corresponding page of described accessing page request; And using the page source code of the sensing page of described mainurl as described second page source code, and the first default script is added in described second page source code.
10. page display device as claimed in claim 9, it is characterized in that, described interpolation module is also for analyzing whether the sensing page of described mainurl is jump page; If so, the page source code of the target pages of redirect is then obtained; If not, then the page source code of the sensing page of described mainurl is obtained.
CN201510381438.3A 2015-07-02 2015-07-02 page display method and device Active CN105005596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510381438.3A CN105005596B (en) 2015-07-02 2015-07-02 page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510381438.3A CN105005596B (en) 2015-07-02 2015-07-02 page display method and device

Publications (2)

Publication Number Publication Date
CN105005596A true CN105005596A (en) 2015-10-28
CN105005596B CN105005596B (en) 2018-10-30

Family

ID=54378272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510381438.3A Active CN105005596B (en) 2015-07-02 2015-07-02 page display method and device

Country Status (1)

Country Link
CN (1) CN105005596B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202381A (en) * 2016-07-08 2016-12-07 贵阳语玩科技有限公司 Start the method for routing of the page, device and assembly
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
WO2020077765A1 (en) * 2018-10-18 2020-04-23 网宿科技股份有限公司 Webpage loading method, intermediate server, and webpage loading system
CN113076480A (en) * 2021-04-21 2021-07-06 百度在线网络技术(北京)有限公司 Page recommendation method and device, electronic equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2498566A (en) * 2012-01-20 2013-07-24 Dolphin Speed Networks Ltd Authenticating a user at a proxy using cookies
CN103544209A (en) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 Method and system for web page access
CN103886029A (en) * 2014-03-03 2014-06-25 百度在线网络技术(北京)有限公司 Method, device, server and system for implementing webpage application
CN103942313A (en) * 2014-04-21 2014-07-23 小米科技有限责任公司 Method and device for displaying web page and terminal
CN104063415A (en) * 2014-02-27 2014-09-24 优视科技有限公司 Method and system for displaying webpage user-defined content
CN104516973A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Method and device for accessing page
US9015857B2 (en) * 2011-11-14 2015-04-21 Wave Systems Corp. Security systems and methods for encoding and decoding digital content
CN104750793A (en) * 2015-03-12 2015-07-01 小米科技有限责任公司 Method and device for generating page tables

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015857B2 (en) * 2011-11-14 2015-04-21 Wave Systems Corp. Security systems and methods for encoding and decoding digital content
GB2498566A (en) * 2012-01-20 2013-07-24 Dolphin Speed Networks Ltd Authenticating a user at a proxy using cookies
CN103544209A (en) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 Method and system for web page access
CN104063415A (en) * 2014-02-27 2014-09-24 优视科技有限公司 Method and system for displaying webpage user-defined content
CN103886029A (en) * 2014-03-03 2014-06-25 百度在线网络技术(北京)有限公司 Method, device, server and system for implementing webpage application
CN103942313A (en) * 2014-04-21 2014-07-23 小米科技有限责任公司 Method and device for displaying web page and terminal
CN104516973A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Method and device for accessing page
CN104750793A (en) * 2015-03-12 2015-07-01 小米科技有限责任公司 Method and device for generating page tables

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202381A (en) * 2016-07-08 2016-12-07 贵阳语玩科技有限公司 Start the method for routing of the page, device and assembly
CN106202381B (en) * 2016-07-08 2019-08-09 贵阳语玩科技有限公司 Start method for routing, device and the component of the page
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
CN108021564B (en) * 2016-10-31 2021-11-26 阿里巴巴集团控股有限公司 Method and equipment for redirecting page
WO2020077765A1 (en) * 2018-10-18 2020-04-23 网宿科技股份有限公司 Webpage loading method, intermediate server, and webpage loading system
CN113076480A (en) * 2021-04-21 2021-07-06 百度在线网络技术(北京)有限公司 Page recommendation method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN105005596B (en) 2018-10-30

Similar Documents

Publication Publication Date Title
US9584504B2 (en) Auto login method and device
US7975217B2 (en) Embedding metadata with displayable content and applications thereof
CN102882993B (en) Computing device and downloading method thereof
US20090006646A1 (en) System and Method of Auto Populating Forms on Websites With Data From Central Database
US8689099B1 (en) Cross-domain communication
CN105005596A (en) Page display method and page display device
CN104462074A (en) Method and device for conducting webpage data translation and browser client side
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
CN102917059A (en) Client end and method for downloading application
US20210064453A1 (en) Automated application programming interface (api) specification construction
US20130179431A1 (en) Tokenized javascript indexing system
CN104750663B (en) The recognition methods of text messy code and device in the page
CN102981844B (en) The browser that webpage main body element is processed and method
WO2017054319A1 (en) Delivery data processing method, device and storage medium
CN107800611B (en) Page switching method and page switching device
CN103810268A (en) Search result recommendation information loading method, device and system and URL detection method, device and system
CN103532824B (en) The method of instant communication information notice, browser and server
CN108737252B (en) Information pushing method and device based on block chain
CN104731869A (en) Page display method and device
CN114240340A (en) Service data processing method and device, electronic equipment and readable storage medium
CN104021154A (en) Method and device for searching browser
CN112187622B (en) Instant message display method and device and server
CN104143110A (en) Two-dimensional code generating method with web site information
US10581783B2 (en) Method and system for creating dynamic email signatures
CN110008432B (en) Web anonymous user identification and tracking method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant