CN105005596B - page display method and device - Google Patents
page display method and device Download PDFInfo
- Publication number
- CN105005596B CN105005596B CN201510381438.3A CN201510381438A CN105005596B CN 105005596 B CN105005596 B CN 105005596B CN 201510381438 A CN201510381438 A CN 201510381438A CN 105005596 B CN105005596 B CN 105005596B
- Authority
- CN
- China
- Prior art keywords
- page
- source code
- page source
- default
- accessing
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation 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 kind of page display methods, including:When receiving accessing page request, the accessing page request received is forwarded to predetermined server;Receive the first page source code that the predetermined server returns;The first page source code is executed, to obtain the second page source code of the accessing page request corresponding page, and the first default script is added in the second page source code;Modified second page source code is executed, the page embedded with the default network information is presented.The invention also discloses a kind of page display devices.The invention enables network access servers to improve the stability of work under the premise of meeting network information push demand.
Description
Technical field
The present invention relates to Internet technical field more particularly to page display methods and device.
Background technology
Currently, it is one of the basic service that client provides that wireless network access services, which have become all trades and professions, and it is past
It is past all to provide free.When the wireless network access services accession page that client is provided by service provider, the page of access
Face is usually embedded with the network information, such as advertisement, recruitment information etc. of service provider's push.The network information of service provider's push is to be directed to
Different user orientation push, by the push of these network informations, service provider can obtain certain return.The prior art
In, the mode of generally use server agent carries out the push of the network information:It is asked in the page access for receiving browser transmission
When asking, network access server obtains the page source code of corresponding page, and by the default network information or for obtaining default net
The script of network information is embedded into the page source code of acquisition, and modified page source code is back to browser, is held for its parsing
Row, the page would be embedded with the default network information are presented to the user.But the aforementioned modification to page source code will occupy network
The a large amount of process resource of access server and memory source, influence the stability of its work.In the prior art, there are network insertions
The problem of server leads to job insecurity because of network information push.
Invention content
The main purpose of the present invention is to provide a kind of page display methods, it is intended to which network access server is existed
Under the premise of meeting network information push demand, the stability of work is improved.
To achieve the above object, a kind of page display method provided by the invention includes:
When receiving accessing page request, the accessing page request received is forwarded to predetermined server;
Receive the first page source code that the predetermined server returns;
The first page source code is executed, to obtain the second page source code of the accessing page request corresponding page, and
First default script is added in the second page source code;
Modified second page source code is executed, the page embedded with the default network information is presented.
Preferably, described to execute modified second page source code, the step of the page embedded with the default network information is presented
Before rapid, the page display method further includes:
Whether identical as the modified coding of second page source code analyze present encoding;
When present encoding is identical as the modified coding of second page source code, it is modified to be transferred to the execution execution
Second page source code, the step of being embedded with the page for presetting the network information is presented.
Preferably, the analysis present encoding whether the step identical as the modified coding of second page source code it
Afterwards, the page display method.Further include:
When present encoding is different from the modified coding of second page source code, present encoding is revised as modified
The coding of second page source code.
Preferably, the first page source code includes the second default script, described to execute the first page source code, to obtain
The second page source code of the accessing page request corresponding page is taken, and the first default script is added to the second page source
Code in step include:
The described second default script is executed, to obtain the homepage uniform resource locator in the described second default script
The page source code of the direction page of mainurl;The mainurl is the url of the accessing page request corresponding page;
Using the page source code of the direction page of the mainurl as the second page source code, and by the first default foot
Originally it is added in the second page source code.
Preferably, described to execute the second default script, to obtain, the homepage in the described second default script is unified to be provided
Source finger URL mainurl be directed toward the page source code the step of include:
Whether the direction page for analyzing the mainurl is jump page;
If so, obtaining the page source code of the target pages redirected;
If it is not, then obtaining the page source code of the direction page of the mainurl.
In addition, to achieve the above object, the present invention also provides a kind of page display devices, including:
Forwarding module, for when receiving accessing page request, the accessing page request received being forwarded to default
Server;
Receiving module, the first page source code returned for receiving the predetermined server;
Add module, for executing the first page source code, to obtain the of the accessing page request corresponding page
Two page source codes, and the first default script is added in the second page source code;
Display module, for executing modified second page source code, the page embedded with the default network information is presented.
Preferably, the page display device further includes analysis module, for analyze present encoding whether with it is modified
The coding of second page source code is identical;
The display module is additionally operable to, when present encoding is identical as the modified coding of second page source code, be transferred to
Execute described the step of executing modified second page source code, the page of the default network information is embedded with presentation.
Preferably, the page display device further includes modified module, in present encoding and modified second page
When the coding of face source code is different, present encoding is revised as to the coding of modified second page source code.
Preferably, the first page source code includes the second default script, and the add module is additionally operable to execute described the
Two default scripts, to obtain the page of the direction page of the homepage uniform resource locator mainurl in the described second default script
Face source code;The mainurl is the url of the accessing page request corresponding page;And by the direction page of the mainurl
Page source code be added in the second page source code as the second page source code, and by the first default script.
Preferably, whether the direction page that the add module is additionally operable to analyze the mainurl is jump page;If
It is the page source code for then obtaining the target pages redirected;If it is not, then obtaining the page source code of the direction page of the mainurl.
The present invention is by the way that when receiving accessing page request, preset service is forwarded to by the accessing page request received
Device;Receive the first page source code that the predetermined server returns;The first page source code is executed, is visited with obtaining the page
It asks the second page source code of request corresponding page, and the first default script is added in the second page source code;Execution is repaiied
Second page source code after changing, the page embedded with the default network information is presented.Compared to the prior art, net is replaced by browser
Network access server completes the modification of page source code, reduces the burden of network access server so that network access server energy
Enough under the premise of meeting network information push demand, the stability of work is improved.
Description of the drawings
Fig. 1 is the flow diagram of page display method first embodiment of the present invention;
Fig. 2 is the refinement flow diagram of S30 in Fig. 1;
Fig. 3 is the refinement flow diagram 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 embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of page display method, referring to Fig.1, in the first embodiment of page display method of the present invention
In, the page display method includes the following steps:
The accessing page request received is forwarded to predetermined server by S10 when receiving accessing page request;
Page display method provided in this embodiment is mainly used in network information push, for example, being provided in service provider
Radio Access Network in, by user terminal local browser replace network access server complete page source code modification, and
Modified page source code is executed, the page embedded with the default network information is presented for user.
Specifically, browser is when receiving accessing page request input by user, the accessing page request that will be received
It is forwarded to predetermined server;Wherein, user can click the arbitrary link triggering accessing page request of browser current display page;
Or the URL of desire accession page is directly inputted in browser address bar, trigger accessing page request;The predetermined server is preferred
The network access server of network insertion service is provided for the currently user terminal where browser, for example, being carried for user terminal
For the radio network ac-cess server of wireless network access services.
S20 receives the first page source code that the predetermined server returns;
The predetermined server returns to first page after the accessing page request for receiving browser forwarding, to browser
Source code, the corresponding page of the first page source code are the processing page of pushing network information.
In addition, the predetermined server can also directly return to it after the accessing page request for receiving browser forwarding
The page source code of the accessing page request corresponding page received shows the page of the not embedded default network information for browser
Face.
S30 executes the first page source code, to obtain the second page source of the accessing page request corresponding page
Code, and the first default script is added in the second page source code;
It should be noted that page source code, also referred to as source code, source program.Refer to non-compiled text codes or the page
Whole sound code files, be a series of readable computer languages instructions.Browser, will be visual by Complied executing page source code
The content of pages of change is presented to the user, for example, when user is by the browser access page, browser background compilation executes the page
The page source code in face, the visual page for including word, picture, voice and/or video content for user's presentation.
Script is the extension of autoexec, is a kind of program that plain text preserves, a series of control terminals being to determine
The combination for carrying out arithmetic operation action, may be implemented certain logic branch etc. wherein.Script is exactly briefly a rule
Written order, these written orders be it can be seen that (can such as be opened with notepad and check, edit).Currently, all kinds of feet
Originally it is widely used in Pages Design, because script can not only reduce the scale of the page and improve page loading velocity,
And the performance of the page can be enriched, such as video, sound.For example, when the user clicks addresses Email on the page when, user
Terminal calls this kind of mailbox software of Outlook Express or Foxmail automatically, is exactly embedded in the aforementioned page by executing
Script in page source code is realized.
In the present embodiment, after receiving the first page source code that the predetermined server returns, described in browser execution
First page source code to obtain the second page source code of the accessing page request corresponding page, and the first default script is added
It adds in the second page source code.Second page source code will be that user's presentation is believed embedded with default network after browser executes modification
The page of breath, i.e. browser show the default network information in showing the corresponding page of the accessing page request.
Above-mentioned first page source code includes the second default script, and the second default script is for controlling browser from acquisition
Process of the second page source code of the accessing page request corresponding page to the modification second page source code.Specifically, join
According to Fig. 2, step S30 includes:
S31 executes the second default script, to obtain the homepage uniform resource locator in the described second default script
The page source code of the direction page of mainurl;
S32, using the page source code of the direction page of the mainurl as the second page source code, and it is pre- by first
If script is added in the second page source code.
It should be noted that the predetermined server receive browser forwarding accessing page request, will be preset
The first page source code of the processing page of pushing network information is sent to before browser, and the accessing page request is corresponded to page
The URL (Uniform Resource Locator, uniform resource locator) in face is assigned in the described second default script
Mainurl (homepage uniform resource locator).
In the present embodiment, browser executes the second default script:Obtain the mainurl in the described second default script
Direction the page page source code (page source code of the i.e. described accessing page request corresponding page);By the finger of the mainurl
To the page source code of the page second page source code is added to as the second page source code, and by the first default script
In.Wherein, the described first default script obtains for controlling browser and the default network information is presented.
S40 executes modified second page source code, the page embedded with the default network information is presented.
After completing to the modification of second page source code, browser resolves simultaneously execute modified second page source code, with
The page embedded with the default network information is presented, i.e. browser is shown simultaneously in showing the corresponding page of the accessing page request
Show the default network information.Specifically, the content of the default network information, and how to show the network information, it takes
Certainly in the first default script being added in second page source code, for example, browser is showing the accessing page request correspondence
While the page, advertising information is shown in the bottom of the page.
It should be noted that browser executes the first default script while showing the default network information,
Close button is also accordingly shown, user can click the close button to close the aobvious of the default network information as needed
Show.
The page display method that the present embodiment proposes, when receiving accessing page request, the page access that will receive
Request is forwarded to predetermined server;Receive the first page source code that the predetermined server returns;Execute the first page source
First default script to obtain the second page source code of the accessing page request corresponding page, and is added to described the by code
In two page source codes;Modified second page source code is executed, the page embedded with the default network information is presented.Compared to existing
Technology replaces network access server to complete the modification of page source code, reduces the burden of network access server, make by browser
The stability of work can be improved under the premise of meeting network information push demand by obtaining network access server.
Further, it is based on first embodiment, the second embodiment of page display method of the present invention is proposed, in the present embodiment
In, before above-mentioned steps S40, the page display method further includes:
Whether identical as the modified coding of second page source code analyze present encoding;If so, being transferred to execution step
S40。
It should be noted that when only the currently employed coding of browser is identical as the coding that page source code uses, browsing
Device could be parsed normally and execute page source code, it is ensured that mess code does not occur in the page of display.
In the present embodiment, browser can get the second page source code by parsing the second page source code
Coding information.Specifically, browser resolves go out " charset=xxx " field in the second page source code, therein
The part " xxx " is exactly the coding that the second page source code uses, and it includes GB2312, GBK, UTF-8 commonly to encode,
ISO8859-1 etc..
Further, to ensure that the page can normally be shown, the analysis present encoding whether with modified second page
After the identical step of coding of face source code, the page display method further includes:
When present encoding is different from the modified coding of second page source code, present encoding is revised as modified
The coding of second page source code is transferred to and executes step S40.
It is easily understood that different from the modified coding of second page source code in the currently employed coding of browser
When, it is preferable that the currently employed coding of browser is revised as to the coding of modified second page source code, browser can be just
Often parsing executes modified second page source code, normally shows the page.
In addition, it will be appreciated by persons skilled in the art that the coding of modified second page source code can also be turned
It is changed to the currently employed coding of browser, modified second page source code is executed so that browser normally parses, it is normal to show
The page.
Further, it is based on first embodiment, proposes the 3rd embodiment of page display method of the present invention, reference Fig. 3,
In the present embodiment, above-mentioned steps S31 includes:
S311, whether the direction page for analyzing the mainurl is jump page;It is to be transferred to execute S312, otherwise turns
Enter to execute S313;
S312 obtains the page source code of the target pages redirected;
S313 obtains the page source code of the direction page of the mainurl.
It should be noted that in a network, there is such a functional pages:Jump page does not have real
Matter can reading content, existing purpose is, when user accesses the jump page, jumps to target pages automatically.
Whether the analysis page is that jump page can refer to prior art execution, and details are not described herein again.
For example, the page source code of the direction page of parsing mainurl, finds following field:
echo"<Meta http-equiv=" Refresh " content=" yyy;Url=zzz ">";
Wherein, Refresh indicates to refresh, and yyy indicates number of seconds (then refreshing immediately for 0), and zzz indicates the page object redirected
Face.The direction page of identification mainurl is jump page at this time, obtains the page source code of the target pages redirected, the i.e. finger of zzz
To the page source code of the page (user is expected the page accessed).
It will be appreciated by persons skilled in the art that if the direction page of identification mainurl is not jump page, explanation is worked as
The page that is directed toward of preceding mainurl is that user is expected the page accessed, directly acquires the page of the direction page of the mainurl at this time
Face source code.
The present embodiment Pass through above-mentioned technical proposal can accurately get the page source code that user is expected the page accessed,
And then the default network information can be embedded in the page.It should be noted that due to the corresponding page of the accessing page request
Face may be jump page, and user is expected the page page corresponding with the accessing page request accessed, can be different, also can phase
Together.
The present invention also provides a kind of page display devices, with reference to Fig. 4, in the first embodiment of page display device of the present invention
In, a kind of page display device provided by the invention includes:
Forwarding module 10, for when receiving accessing page request, the accessing page request received being forwarded to pre-
If server;
Page display device provided in this embodiment is mainly used in network information push, for example, being provided in service provider
Radio Access Network in, by user terminal local browser replace network access server complete page source code modification, and
Modified page source code is executed, the page embedded with the default network information is presented for user.
It should be noted that page display device provided by the invention is built in browser execution.Specifically, forwarding module
10 when receiving accessing page request input by user, and the accessing page request received is forwarded to predetermined server;Its
In, user can click the arbitrary link triggering accessing page request of browser current display page;Or directly in browser
Column input in location is intended to the URL of accession page, triggers accessing page request;The predetermined server is preferably currently where browser
User terminal provides the network access server of network insertion service, for example, providing wireless network access services for user terminal
Radio network ac-cess server.
Receiving module 20, the first page source code returned for receiving the predetermined server;
The predetermined server (receives mould after the accessing page request for receiving the forwarding of forwarding module 10, to browser
Block 20) first page source code is returned, the corresponding page of the first page source code is the processing page of pushing network information.
In addition, the predetermined server can also be returned directly after the accessing page request for receiving the forwarding of forwarding module 10
The page source code for returning received accessing page request corresponding page shows the not embedded default network information for browser
The page.
Add module 30, for executing the first page source code, to obtain the accessing page request corresponding page
Second page source code, and the first default script is added in the second page source code;
It should be noted that page source code, also referred to as source code, source program.Refer to non-compiled text codes or the page
Whole sound code files, be a series of readable computer languages instructions.Browser, will be visual by Complied executing page source code
The content of pages of change is presented to the user, for example, when user is by the browser access page, browser background compilation executes the page
The page source code in face, the visual page for including word, picture, voice and/or video content for user's presentation.
Script is the extension of autoexec, is a kind of program that plain text preserves, a series of control terminals being to determine
The combination for carrying out arithmetic operation action, may be implemented certain logic branch etc. wherein.Script is exactly briefly a rule
Written order, these written orders be it can be seen that (can such as be opened with notepad and check, edit).Currently, all kinds of feet
Originally it is widely used in Pages Design, because script can not only reduce the scale of the page and improve page loading velocity,
And the performance of the page can be enriched, such as video, sound.For example, when the user clicks addresses Email on the page when, user
Terminal calls this kind of mailbox software of Outlook Express or Foxmail automatically, is exactly embedded in the aforementioned page by executing
Script in page source code is realized.
In the present embodiment, after the first page source code that receiving module 20 receives that the predetermined server returns, addition
Module 30 executes the first page source code, to obtain the second page source code of the accessing page request corresponding page, and will
First default script is added in the second page source code.Second page source code will be that user is presented after browser executes modification
The page embedded with the default network information, i.e. browser show institute in showing the corresponding page of the accessing page request
State the default network information.
Above-mentioned first page source code includes the second default script, and the second default script is for controlling browser from acquisition
Process of the second page source code of the accessing page request corresponding page to the modification second page source code.Specifically, institute
It states add module 30 to be additionally operable to execute the described second default script, to obtain the homepage unified resource in the described second default script
The page source code of the direction page of finger URL mainurl;The mainurl is the url of the accessing page request corresponding page;
And the page source code of the direction page of the mainurl is added as the second page source code, and by the first default script
It adds in the second page source code.
It should be noted that the predetermined server receive forwarding module 10 forwarding accessing page request, will be pre-
If the first page source code of the processing page of pushing network information be sent to before receiving module 20, the page access is asked
The URL (Uniform Resource Locator, uniform resource locator) of corresponding page is asked to be assigned to the described second default foot
Mainurl (homepage uniform resource locator) in this.
In the present embodiment, add module 30 executes the described second default script:It obtains in the described second default script
The page source code (page source code of the i.e. described accessing page request corresponding page) of the direction page of mainurl;It will be described
The page source code of the direction page of mainurl is added to described the as the second page source code, and by the first default script
In two page source codes.Wherein, the described first default script obtains for controlling browser and the default network information is presented.
Display module 40, for executing modified second page source code, the page embedded with the default network information is presented.
After add module 30 is completed to the modification of second page source code, display module 40 parses and executes modified the
Two page source codes, the page embedded with the default network information is presented, i.e. browser is showing that the accessing page request is corresponding
In the page, while showing the default network information.Specifically, the content of the default network information, and how to show institute
The network information is stated, the default script of first depending on being added in second page source code, for example, display module 40 is described in display
While accessing page request corresponding page, advertising information is shown in the bottom of the page.
It should be noted that display module 40, which executes the described first default script, is showing the same of the default network information
When, close button is also accordingly shown, user can click the close button to close the default network information as needed
Display.
The page display device that the present embodiment proposes, when receiving accessing page request, the page access that will receive
Request is forwarded to predetermined server;Receive the first page source code that the predetermined server returns;Execute the first page source
First default script to obtain the second page source code of the accessing page request corresponding page, and is added to described the by code
In two page source codes;Modified second page source code is executed, the page embedded with the default network information is presented.Compared to existing
Technology replaces network access server to complete the modification of page source code, reduces the burden of network access server, make by browser
The stability of work can be improved under the premise of meeting network information push demand by obtaining network access server.
Further, it is based on first embodiment, the second embodiment of page display device of the present invention is proposed, in the present embodiment
In, the page display device further includes analysis module, for analyze present encoding whether with modified second page source code
Coding it is identical;
The display module 40 is additionally operable to when present encoding is identical as the modified coding of second page source code, is turned
Enter to execute described the step of executing modified second page source code, the page of the default network information is embedded with presentation.
It should be noted that when only the currently employed coding of browser is identical as the coding that page source code uses, browsing
Device could be parsed normally and execute page source code, it is ensured that mess code does not occur in the page of display.
In the present embodiment, analysis module can get the second page source by parsing the second page source code
The coding information of code.Specifically, analysis module parses " charset=xxx " field in the second page source code, wherein
The part " xxx " be exactly coding that the second page source code uses, it includes GB2312, GBK, UTF-8 commonly to encode,
ISO8859-1 etc..
Further, to ensure that the page can normally be shown, the page display device further includes modified module, is used for
When present encoding is different from the modified coding of second page source code, present encoding is revised as modified second page
The coding of source code
It is easily understood that different from the modified coding of second page source code in the currently employed coding of browser
When, it is preferable that the currently employed coding of browser is revised as the coding of modified second page source code by modified module, browsing
Device, which can be parsed normally, executes modified second page source code, normally shows the page.
In addition, it will be appreciated by persons skilled in the art that the coding of modified second page source code can also be turned
It is changed to the currently employed coding of browser, modified second page source code is executed so that browser normally parses, it is normal to show
The page.
Further, it is based on first embodiment, the 3rd embodiment of page display device of the present invention is proposed, in the present embodiment
In, whether the direction page that the add module 30 is additionally operable to analyze the mainurl is jump page;It is jumped if so, obtaining
The page source code of the target pages turned;If it is not, then obtaining the page source code of the direction page of the mainurl.
It should be noted that in a network, there is such a functional pages:Jump page does not have real
Matter can reading content, existing purpose is, when user accesses the jump page, jumps to target pages automatically.
Whether the analysis page is that jump page can refer to prior art execution, and details are not described herein again.
For example, add module 30 parses the page source code of the direction page of mainurl, following field is found:
echo"<Meta http-equiv=" Refresh " content=" yyy;Url=zzz ">";
Wherein, Refresh indicates to refresh, and yyy indicates number of seconds (then refreshing immediately for 0), and zzz indicates the page object redirected
Face.Add module 30 identifies that the direction page of mainurl is jump page at this time, obtains the page source of the target pages redirected
Code, the i.e. page source code of the direction page (user is expected the page accessed) of zzz.
It will be appreciated by persons skilled in the art that if add module 30 identifies that the direction page of mainurl is not to redirect
The page illustrates that the page that is directed toward of current mainurl is that user is expected the page accessed, directly acquires the mainurl's at this time
It is directed toward the page source code of the page.
The present embodiment Pass through above-mentioned technical proposal can accurately get the page source code that user is expected the page accessed,
And then the default network information can be embedded in the page.It should be noted that due to the corresponding page of the accessing page request
Face may be jump page, and user is expected the page page corresponding with the accessing page request accessed, can be different, also can phase
Together.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of page display method, which is characterized in that the page display method includes:
When receiving accessing page request, the accessing page request received is forwarded to predetermined server;
Receive the first page source code that the predetermined server returns, wherein the corresponding page of the first page source code is to push away
The processing page or the corresponding page without Embedded Web information of accessing page request of SCN Space Cable Network information;
The first page source code is executed, to obtain the second page source code of the accessing page request corresponding page, and by
One default script is added in the second page source code;
Modified second page source code is executed, the page embedded with the default network information is presented.
2. page display method as described in claim 1, which is characterized in that it is described to execute modified second page source code,
Before the step of page embedded with the default network information is presented, the page display method further includes:
Whether identical as the modified coding of second page source code analyze present encoding;
When present encoding is identical as the modified coding of second page source code, it is transferred to and executes the execution modified second
Page source code, the step of being embedded with the page for presetting the network information is presented.
3. page display method as claimed in claim 2, which is characterized in that the analysis present encoding whether with it is modified
After the identical step of coding of second page source code, the page display method further includes:
When present encoding is different from the modified coding of second page source code, present encoding is revised as modified second
The coding of page source code.
4. page display method as described in claim 1, which is characterized in that the first page source code includes the second default foot
This, it is described to execute the first page source code, to obtain the second page source code of the accessing page request corresponding page, and will
The step that first default script is added in the second page source code includes:
The described second default script is executed, to obtain the homepage uniform resource locator mainurl in the described second default script
Direction the page page source code;The mainurl is the url of the accessing page request corresponding page;
The page source code of the direction page of the mainurl is added as the second page source code, and by the first default script
It adds in the second page source code.
5. page display method as claimed in claim 4, which is characterized in that it is described to execute the second default script, to obtain
The step of taking the homepage uniform resource locator mainurl in the described second default script to be directed toward the source code of the page include:
Whether the direction page for analyzing the mainurl is jump page;
If so, obtaining the page source code of the target pages redirected;
If it is not, then obtaining the page source code of the direction page of the mainurl.
6. a kind of page display device, which is characterized in that the page display device includes:
Forwarding module, for when receiving accessing page request, the accessing page request received to be forwarded to preset service
Device;
Receiving module, the first page source code returned for receiving the predetermined server, wherein the first page source code pair
The page answered is the processing page or the corresponding page without Embedded Web information of accessing page request of pushing network information;
Add module, for executing the first page source code, to obtain the second page of the accessing page request corresponding page
Face source code, and the first default script is added in the second page source code;
Display module, for executing modified second page source code, the page embedded with the default network information is presented.
7. page display device as claimed in claim 6, which is characterized in that the page display device further includes analysis mould
Whether block is identical as the modified coding of second page source code for analyzing present encoding;
The display module is additionally operable to, when present encoding is identical as the modified coding of second page source code, be transferred to execution
It is described to execute modified second page source code, the step of being embedded with the page for presetting the network information is presented.
8. page display device as claimed in claim 7, which is characterized in that the page display device further includes modification mould
Block, for when present encoding is different from the modified coding of second page source code, present encoding being revised as modified
The coding of second page source code.
9. page display device as claimed in claim 6, which is characterized in that the first page source code includes the second default foot
This, the add module is additionally operable to execute the described second default script, unified to obtain the homepage in the described second default script
The page source code of the direction page of Resource Locator mainurl;The mainurl is the accessing page request corresponding page
url;And using the page source code of the direction page of the mainurl as the second page source code, and by the first default foot
Originally it is added in the second page source code.
10. page display device as claimed in claim 9, which is characterized in that the add module is additionally operable to described in analysis
Whether the direction page of mainurl is jump page;If so, obtaining the page source code of the target pages redirected;If it is not, then obtaining
Take the page source code of the direction page of the mainurl.
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 CN105005596A (en) | 2015-10-28 |
CN105005596B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106202381B (en) * | 2016-07-08 | 2019-08-09 | 贵阳语玩科技有限公司 | Start method for routing, device and the component of the page |
CN108021564B (en) * | 2016-10-31 | 2021-11-26 | 阿里巴巴集团控股有限公司 | Method and equipment for redirecting page |
CN109344351B (en) * | 2018-10-18 | 2021-01-05 | 网宿科技股份有限公司 | 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)
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 |
-
2015
- 2015-07-02 CN CN201510381438.3A patent/CN105005596B/en active Active
Patent Citations (8)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105005596A (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3026565B1 (en) | Automated testing of web-based applications | |
CA2915619C (en) | Method and apparatus for customized software development kit (sdk) generation | |
CN108038134B (en) | Page display method and device, storage medium and electronic equipment | |
CN105335404B (en) | Page info loading method and device | |
CN101398845B (en) | Multi-language binding method and system in web applications | |
CN107766344B (en) | Template rendering method and device and browser | |
US20080127097A1 (en) | Method and devices for url command testing and for scenario testing | |
US9503505B2 (en) | Monadic evaluation of injected query compositions | |
US9497248B2 (en) | System for enabling rich network applications | |
CN105005596B (en) | page display method and device | |
CN107688529B (en) | Component debugging method and device | |
CN104063401B (en) | The method and apparatus that a kind of webpage pattern address merges | |
CN107679214B (en) | Link positioning method, device, terminal and computer readable storage medium | |
CN112637361B (en) | Page proxy method, device, electronic equipment and storage medium | |
US20160359989A1 (en) | Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields | |
CN105095220B (en) | A kind of browser implementation method, terminal and virtualization agent device | |
US20130191726A1 (en) | Automatic widget creation apparatus and method for invoking heterogeneous web services in a composite application | |
CN113934913A (en) | Data capture method and device, storage medium and electronic equipment | |
CN108958855A (en) | The method, apparatus and system of page jump | |
US8396920B1 (en) | Clean URLs in web applications | |
CN111859077A (en) | Data processing method, device, system and computer readable storage medium | |
CN112068879A (en) | Method and device for constructing client application development framework based on configuration | |
Oh et al. | Automated transformation of template-based web applications into single-page applications | |
CN104102536A (en) | Display method and system for data | |
CN106126198B (en) | In the method and device of the mobile terminal load end PC application page |
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 |