CN106201562A - A kind of page switching method and device - Google Patents

A kind of page switching method and device Download PDF

Info

Publication number
CN106201562A
CN106201562A CN201510217550.3A CN201510217550A CN106201562A CN 106201562 A CN106201562 A CN 106201562A CN 201510217550 A CN201510217550 A CN 201510217550A CN 106201562 A CN106201562 A CN 106201562A
Authority
CN
China
Prior art keywords
page
url
cryptographic hash
ajax
layout switch
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.)
Pending
Application number
CN201510217550.3A
Other languages
Chinese (zh)
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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201510217550.3A priority Critical patent/CN106201562A/en
Publication of CN106201562A publication Critical patent/CN106201562A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a kind of page switching method and device, can support that iframe collapses domain browsing and the forward-reverse of ajax asynchronous access, is accurately positioned and loads the corresponding page according to page layout switch instruction.The method comprise the steps that the operation of the page access to user is monitored, and the url of url and the ajax page of the iframe page in the correspondence acquisition display page, wherein, the described iframe page refer to iframe collapse domain browsing form load the page, the described ajax page refer to ajax asynchronous access form load the page;Main url for the described display page arranges cryptographic Hash and carries out record, and wherein, described cryptographic Hash includes the url of url and the ajax page of the iframe page in the described display page;When receiving the page layout switch instruction that user sends, obtain the url after being correspondingly arranged cryptographic Hash according to the instruction of described page layout switch;Url after cryptographic Hash is set loads the page according to described.

Description

A kind of page switching method and device
Technical field
The present invention relates to WEB application technical field, particularly relate to a kind of page switching method and device.
Background technology
Generally, developer can be by calling realizing of the window.history object of browser offer General forward-reverse function, to be switched to target pages, such as, the retrogressing of user's click browser is pressed Key, browser can find the address of a upper page from historical record, and load the page that this address is corresponding Face.
But, when page nested inside has floating frame iframe, due to browser historical record not The page access operation carried out in recording iframe, therefore, after the advance in user's click browser When moving back, will be unable to the concrete page being accurately positioned in iframe, and the homepage of iframe can only be navigated to.
And, when user with ajax (asynchronous javascript and xml, asynchronous javascript and Xml) during asynchronous access form Local hydrodynamic unit partial page content, due to refresh before and after the page URL not Becoming, therefore, browser cannot perceive the generation of this refresh events, will not be to ajax in historical record The page access operation of asynchronous access form carries out record, therefore, the advance in user's click browser During retrogressing, it is impossible to see the data just now refreshed, that the page shows or original legacy data.
It follows that when page nested inside with iframe collapse domain browsing form be loaded into subpage frame or page When face partial content is loaded into ajax asynchronous access form, the forward-reverse button in user's click browser Will be unable to the page before being accurately switched to.
Summary of the invention
Embodiments provide a kind of page switching method and device, can support that iframe collapses domain browsing With the forward-reverse of ajax asynchronous access, it is accurately positioned and loads the corresponding page according to page layout switch instruction.
The first aspect of the embodiment of the present invention provides a kind of page switching method, including:
Page access operation to user is monitored, and the corresponding floating frame page obtained in the display page The URL in face and the URL of the ajax page, wherein, described floating frame page Face refer to floating frame collapse domain browsing form load the page, the described ajax page refers to ajax asynchronous The page that access stencil loads;
Main URL for the described display page arranges cryptographic Hash and carries out record, wherein, and institute State cryptographic Hash and include the URL of the floating frame page in the described display page and the ajax page URL;
When receiving the page layout switch instruction that user sends, obtain correspondence according to the instruction of described page layout switch URL after cryptographic Hash is set;
URL after cryptographic Hash is set loads the page according to described.
Embodiment of the present invention second aspect provides a kind of page layout switch device, including:
First acquiring unit, is monitored for operating the page access of user, and corresponding acquisition shows The URL of the floating frame page in the page and the URL of the ajax page, its In, the described floating frame page refer to floating frame collapse domain browsing form load the page, described ajax The page refers to the page loaded with ajax asynchronous access form;
Record unit, arranges cryptographic Hash for the main URL for the described display page and carries out Record, wherein, described cryptographic Hash includes the unified resource location of the floating frame page in the described display page Symbol and the URL of the ajax page;
Second acquisition unit, for when receiving the page layout switch instruction that user sends, according to described page Face switching command obtains the URL after being correspondingly arranged cryptographic Hash;
Loading unit, for arranging the URL after cryptographic Hash load the page according to described.
In the technical scheme that the embodiment of the present invention provides, the page access operation to user is monitored, and The url of url and the ajax page of the corresponding iframe page obtained in the display page, wherein, this iframe The page refer to iframe collapse domain browsing form load the page, this ajax page refers to the asynchronous visit of ajax The page that form of asking loads;And the main url for this display page arranges cryptographic Hash and carries out record, wherein, This cryptographic Hash includes the url of url and the ajax page of the iframe page in this display page so that Mei Gexian Show that the page is all associated with a url being provided with corresponding cryptographic Hash;When the page layout switch receiving user's transmission refers to When making, obtain the url after being correspondingly arranged cryptographic Hash according to page layout switch instruction, and cryptographic Hash is set according to this After url load the page, due to the url after cryptographic Hash is set include show the page main url, iframe page The url of url and the ajax page in face, thus, arranges the url after cryptographic Hash by this and is accurately positioned and loads Respective page.Therefore relative to prior art, the embodiment of the present invention can support that iframe collapses domain browsing and ajax The forward-reverse of asynchronous access, is accurately positioned and loads the corresponding page according to page layout switch instruction.
Accompanying drawing explanation
Fig. 1 is one embodiment schematic diagram of page switching method in the embodiment of the present invention;
Fig. 2 is an embodiment schematic diagram of page loading procedure in Fig. 1;
Fig. 3 is one embodiment schematic diagram of page layout switch device in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of page layout switch device in the embodiment of the present invention.
Detailed description of the invention
Embodiments provide a kind of page switching method and device, can support that iframe collapses domain browsing With the forward-reverse of ajax asynchronous access, it is accurately positioned and loads the corresponding page according to page layout switch instruction, It is described in detail individually below.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and It is not all, of embodiment.Based on the embodiment in the present invention, those skilled in the art are not making wound The every other embodiment obtained under the property made work premise, broadly falls into the scope of protection of the invention.
Additionally, term " includes " and " having " and their any deformation, it is intended that cover not Exclusive comprises, such as, contain series of steps or the process of unit, method, system, product or Equipment is not necessarily limited to those steps or the unit clearly listed, but can include the most clearly listing Or for intrinsic other step of these processes, method, product or equipment or unit.
It should be noted that technical scheme can be realized by multiple web front-end development language, Such as, javascript script (hereinafter referred to as js script) etc., illustrate as a example by js script below:
Referring to Fig. 1, in the embodiment of the present invention, one embodiment of page switching method includes:
101, the page access to user operates and is monitored, and the corresponding iframe obtained in the display page The url of url and the ajax page of the page;
Wherein, the iframe page refer to iframe collapse domain browsing form load the page, the ajax page refer to The page that ajax asynchronous access form loads.In the present embodiment, any page access behaviour to user All be monitored, including based on iframe collapse domain browsing form page access operation and asynchronous based on ajax The page access operation of access stencil, wherein, often performs a page access operation, browser user All will according to this page access operation load accordingly, obtain correspondence the display page, such as, After performing a certain page access operation (as request accesses iframe page A) in the iframe of certain homepage, Browser, by collapsing this iframe page A that domain browsing form loads in homepage with iframe, is shown There is the homepage of this iframe page A, or, homepage is initiated ajax and asks to perform a certain page After accessing operation (as the local content in page content is refreshed, to access ajax page B), Browser will load this ajax page B with ajax asynchronous access form, obtain showing the master of this ajax page B The page.
In the present embodiment, the iframe page in the js script display page to obtaining according to page access operation Url (uniform resource locator, uniform resource locator) and the url of the ajax page obtain, example As, the iframe page accession page can be obtained from the interface correspondence called of iframe that user accesses Url, the url of the ajax page from the interface correspondence acquisition display page that the ajax of user's access calls.
102, the main url for the display page arranges cryptographic Hash and carries out record;
In the present embodiment, the iframe page in obtaining the display page obtained according to page access operation The url, the main url for this display page of url and the ajax page cryptographic Hash is set and carries out record, to obtain Corresponding with this display page cryptographic Hash is set after url (being designated as target url below), herein, for each aobvious Show that the page all has target url of correspondence, be equivalent to the corresponding pass establishing between the display page and target url System.
Wherein, the main url of the display page refers to show the url of homepage in the page.The cryptographic Hash of url refers to one " # " and character string afterwards thereof in individual url, it can be read as location identifier, and these characters by browser All without being sent to server end.In the present embodiment, during cryptographic Hash includes this display page iframe page The url of url and the ajax page in face, such as, can be expressed as target url:
url1?Xx=1#url=url2&xx2=2&url=url3&xx3=3;
Wherein, url1 represents that the URL that homepage accesses, xx=1 represent the parameter of homepage;Url2 represents iframe The url of the page, xx2=2 represent the parameter of the iframe page;Url3 represents that the url that ajax calls, xx3=3 represent The parameter that ajax calls.
In the present embodiment, the main url for the display page arranges cryptographic Hash and the mode that carries out recording can be wrapped Include following two:
One, by the cryptographic Hash of the main url of the window.location.hash object modification display page, to trigger Url after amendment cryptographic Hash is recorded in the historical record of this browser by browser;
I.e. js script can utilize window.location.hash object that browser the provides master to the display page The cryptographic Hash of url is modified, obtain correspondence target url, this target url include show the page main url, The url of url and the ajax page of the iframe page in the display page.When browser detects that the cryptographic Hash of main url becomes During change, the cryptographic Hash that can trigger browser changes event (hashchange), and before not reload page Put, create one and access historical record, thus target url is recorded in the historical record of browser.
Two, simulation browser is display page setup cryptographic Hash, and the operation according to User Page access is suitable Sequence, record is correspondingly arranged the url after cryptographic Hash, to generate browsing histories file.
I.e. js script can obtain target url, this target url with simulation browser for display page setup cryptographic Hash Include showing the main url of the page, showing the url of url and the ajax page of the iframe page in the page, and according to The operation order that User Page accesses, target url that record is corresponding, to generate browsing histories literary composition in js script Part.
It follows that target url can record in the historical record of browser, it is also possible to record is at js script In the framework built, it is not construed as limiting the most herein.
103, when receiving the page layout switch instruction that user sends, it is right to obtain according to the instruction of this page layout switch Url after cryptographic Hash should be set;
In the present embodiment, page layout switch instruction can include for indicating the page to advance and/or the instruction page The page layout switch instruction retreated, such as, when user sends for indicating the page layout switch of page back to instruct Time, representing target pages to be switched to is a upper display page, then can remember from the history of browser The browsing histories file of record or framework obtains target url of correspondence.
It is understood that page layout switch instruction can be also used for positioning and is switched to some target pages Page layout switch instructs, such as the switching command of the collection page, when user sends a certain collection page During page layout switch instruction, it is also possible to obtain from the historical record of browser or the browsing histories file of framework Take target url of correspondence, in order to be accurately positioned according to page layout switch instruction and load and collect the page accordingly.
It follows that owing to having pre-build the corresponding relation between the display page and target url, js script can The page accessed before showing arbitrarily with the page layout switch instruction combining ad hoc rule for user.
104, the url after cryptographic Hash is set according to this and loads the page;
In the present embodiment, after obtaining target url according to page layout switch instruction, js script is according to this target url In main url, display the page in the iframe page url and the ajax page url load the page, i.e. can be used The display page that family is specified.
With objectives url, the page loading procedure in this step is introduced below, specifically refers to Fig. 2.
Target url is:
url1?Xx=1#url=url2&xx2=2&url=url3&xx3=3;
Wherein, url1 represents that the URL that homepage accesses, xx=1 represent the parameter of homepage;Url2 represents iframe The url of the page, xx2=2 represent the parameter of the iframe page;Url3 represents that the url that ajax calls, xx3=3 represent The parameter that ajax calls.
The process that then the js script execution page loads includes: 201, input target url in a browser;202、 Load url1 (parameter xx=1), to show main frame interface;203, url2 (parameter xx2=2) is loaded, with Obtain the iframe page and be loaded into iframe region;204, url3 (parameter xx3=3) is loaded, to obtain ajax Content displaying is to ajax region;205, the page has loaded.
In the technical scheme that the embodiment of the present invention provides, the page access operation to user is monitored, and The url of url and the ajax page of the corresponding iframe page obtained in the display page, wherein, this iframe page Refer to iframe collapse domain browsing form load the page, this ajax page refers to ajax asynchronous access form The page loaded;And the main url for this display page arranges cryptographic Hash and carries out record, wherein, this Hash Value includes the url of url and the ajax page of the iframe page in this display page so that each display page closes It is associated with a url being provided with corresponding cryptographic Hash;When receiving the page layout switch instruction that user sends, according to Page layout switch instruction obtains the url after being correspondingly arranged cryptographic Hash, and arranges the loading of the url after cryptographic Hash according to this The page, owing to the url after arranging cryptographic Hash includes url and ajax page of main url, iframe page that show the page The url in face, thus, arranges the url after cryptographic Hash by this and is accurately positioned and loads respective page.Therefore phase For prior art, the embodiment of the present invention can support iframe collapse domain browsing and ajax asynchronous access advance after Move back, be accurately positioned and load the corresponding page according to page layout switch instruction.
Above the page switching method in the embodiment of the present invention is described, below the present invention is implemented Page layout switch device in example is described, and refers to Fig. 3, page layout switch device one in the embodiment of the present invention Individual embodiment includes:
First acquiring unit 301, is monitored for operating the page access of user, and corresponding acquisition shows Showing the url of url and the ajax page of the iframe page in the page, wherein, the described iframe page refers to With iframe collapse domain browsing form load the page, the described ajax page refers to ajax asynchronous access form The page loaded;
Record unit 302, arranges cryptographic Hash for the main url for the described display page and carries out record, its In, described cryptographic Hash includes the url of url and the ajax page of the iframe page in the described display page;
Second acquisition unit 303, for when receiving the page layout switch instruction that user sends, according to described Page layout switch instruction obtains the url after being correspondingly arranged cryptographic Hash;
Loading unit 304, for arranging the url after cryptographic Hash load the page according to described.
For ease of understanding, below as a example by a concrete application scenarios, to page layout switch device in the present embodiment Inner working flow process is described:
The page access of user is operated and is monitored by the first acquiring unit 301, and corresponding acquisition shows page The url of url and the ajax page of the iframe page in face, wherein, the described iframe page refers to iframe The page that the domain browsing form that collapses loads, the described ajax page refers to the page loaded with ajax asynchronous access form Face;Record unit 302 is that the main url of the described display page arranges cryptographic Hash and carries out record, wherein, and institute State cryptographic Hash and include the url of url and the ajax page of the iframe page in the described display page;When receiving During the page layout switch instruction that user sends, second acquisition unit 303 obtains according to the instruction of described page layout switch It is correspondingly arranged the url after cryptographic Hash;Loading unit 304 arranges the url loaded page after cryptographic Hash according to described Face.
Alternatively, in the present embodiment, described record unit 302, specifically may be used for passing through The cryptographic Hash of the main url of the page is shown, to trigger browser described in window.location.hash object modification Url after amendment cryptographic Hash is recorded in the historical record of described browser.
Alternatively, in the present embodiment, described record unit 302 may include that
Module is set, is described display page setup cryptographic Hash for simulation browser;
Logging modle, for the operation order accessed according to User Page, after record is correspondingly arranged cryptographic Hash Url, to generate browsing histories file.
Alternatively, in the present embodiment, described first acquiring unit 301, specifically for the page to user Access operation is monitored, and the interface correspondence that the iframe accessed from user calls obtains accession page The url of the iframe page, the interface correspondence that the ajax accessed from user calls obtains the ajax accession page The url of the page.
Alternatively, in the present embodiment, described page layout switch instruction include for indicate the page advance and/or The page layout switch instruction of instruction page back.
In the technical scheme that the embodiment of the present invention provides, first acquiring unit 301 page access to user Operation is monitored, and the url of url and the ajax page of the corresponding iframe page obtained in the display page, Wherein, this iframe page refer to iframe collapse domain browsing form load the page, this ajax page is Refer to the page loaded with ajax asynchronous access form;And by the main url that record unit 302 is this display page Arranging cryptographic Hash and carry out record, wherein, this cryptographic Hash includes the url of the iframe page in this display page Url with the ajax page so that each display page is associated with a url being provided with corresponding cryptographic Hash;When When receiving the page layout switch instruction that user sends, second acquisition unit 303 obtains according to page layout switch instruction Take the url after being correspondingly arranged cryptographic Hash, and by loading unit 304, the url after cryptographic Hash is set according to this and adds Carry the page, due to the url after cryptographic Hash is set include show the page main url, iframe page url and The url of the ajax page, thus, arranges the url after cryptographic Hash by this and is accurately positioned and loads respective page. Therefore relative to prior art, the embodiment of the present invention can support that iframe collapses domain browsing and ajax asynchronous access Forward-reverse, according to page layout switch instruction be accurately positioned and load the corresponding page.
From the angle of modular functionality entity, the page layout switch device the embodiment of the present invention is retouched above State, from the angle of hardware handles, the page layout switch device the embodiment of the present invention is described below, please Refering to Fig. 4, in the embodiment of the present invention, another embodiment of page layout switch device includes:
Input equipment 401, output device 402, processor 403 and memorizer 404 (wherein page layout switch The quantity of the processor 403 in device can be one or more, in Fig. 4 as a example by a processor 403). In some embodiments of the invention, input equipment 401, output device 402, processor 403 and storage Device 404 can be connected, wherein, in Fig. 4 as a example by being connected by bus by bus or alternate manner.
Wherein, by calling the operational order of memorizer 404 storage, processor 403, it is used for performing as follows Step:
Page access operation to user is monitored, and the corresponding iframe page obtained in the display page The url of url and the ajax page, wherein, the described iframe page refers to collapse domain browsing form with iframe The page loaded, the described ajax page refers to the page loaded with ajax asynchronous access form;
Main url for the described display page arranges cryptographic Hash and carries out record, and wherein, described cryptographic Hash includes The url of url and the ajax page of the iframe page in the described display page;
When receiving the page layout switch instruction that user sends, obtain correspondence according to the instruction of described page layout switch Url after cryptographic Hash is set;
Url after cryptographic Hash is set loads the page according to described.
In some embodiments of the invention, processor 403 specifically may be used for perform following steps:
By showing the cryptographic Hash of the main url of the page described in window.location.hash object modification, to touch Send out browser to be recorded in the historical record of described browser by the url after amendment cryptographic Hash.
In some embodiments of the invention, processor 403 specifically may be used for perform following steps:
Simulation browser is described display page setup cryptographic Hash;
The operation order accessed according to User Page, record is correspondingly arranged the url after cryptographic Hash, clear to generate Look at history file.
In some embodiments of the invention, processor 403 specifically may be used for perform following steps:
The iframe page from the interface correspondence acquisition display page that the iframe of user's access calls url;
The url of the ajax page from the interface correspondence acquisition display page that the ajax of user's access calls.
In some embodiments of the invention, described page layout switch instruction include for indicate the page advance and/ Or the page layout switch instruction of instruction page back.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and Method, can realize by another way.Such as, device embodiment described above is only shown Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another System, or some features can ignore, or do not perform.Another point, shown or discussed each other Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme Completely or partially can embody with the form of software product, this computer software product is stored in one In storage medium, including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit; Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (10)

1. a page switching method, it is characterised in that including:
Page access operation to user is monitored, and the corresponding floating frame page obtained in the display page The URL in face and the URL of the ajax page, wherein, described floating frame page Face refer to floating frame collapse domain browsing form load the page, the described ajax page refers to ajax asynchronous The page that access stencil loads;
Main URL for the described display page arranges cryptographic Hash and carries out record, wherein, and institute State cryptographic Hash and include the URL of the floating frame page in the described display page and the ajax page URL;
When receiving the page layout switch instruction that user sends, obtain correspondence according to the instruction of described page layout switch URL after cryptographic Hash is set;
URL after cryptographic Hash is set loads the page according to described.
2. page switching method as claimed in claim 1, it is characterised in that described for described display page Face arranges cryptographic Hash and carries out record and include:
By showing the main URL of the page described in window.location.hash object modification Cryptographic Hash, to trigger browser by the URL record after amendment cryptographic Hash at described browser Historical record in.
3. page switching method as claimed in claim 1, it is characterised in that described for described display page Face arranges cryptographic Hash and carries out record and include:
Simulation browser is described display page setup cryptographic Hash;
The operation order accessed according to User Page, record is correspondingly arranged the unified resource location after cryptographic Hash Symbol, to generate browsing histories file.
4. the page switching method as described in any one in claims 1 to 3, it is characterised in that institute State URL and the unification of the ajax page of the corresponding floating frame page obtained in the display page URLs includes:
The interface correspondence called from the floating frame of user's access obtains the floating frame page the display page URL;
The unified money of the ajax page from the interface correspondence acquisition display page that the ajax of user's access calls Source location accords with.
5. the page switching method as described in any one in claims 1 to 3, it is characterised in that institute State page layout switch instruction to include for indicating the page to advance and/or the page layout switch instruction of instruction page back.
6. a page layout switch device, it is characterised in that including:
First acquiring unit, is monitored for operating the page access of user, and corresponding acquisition shows The URL of the floating frame page in the page and the URL of the ajax page, its In, the described floating frame page refer to floating frame collapse domain browsing form load the page, described ajax The page refers to the page loaded with ajax asynchronous access form;
Record unit, arranges cryptographic Hash for the main URL for the described display page and carries out Record, wherein, described cryptographic Hash includes the unified resource location of the floating frame page in the described display page Symbol and the URL of the ajax page;
Second acquisition unit, for when receiving the page layout switch instruction that user sends, according to described page Face switching command obtains the URL after being correspondingly arranged cryptographic Hash;
Loading unit, for arranging the URL after cryptographic Hash load the page according to described.
7. page layout switch device as claimed in claim 6, it is characterised in that
Described record unit, specifically for showing page described in window.location.hash object modification The cryptographic Hash of the main URL in face, to trigger browser by the unified resource after amendment cryptographic Hash Finger URL record is in the historical record of described browser.
8. page layout switch device as claimed in claim 6, it is characterised in that described record unit includes:
Module is set, is described display page setup cryptographic Hash for simulation browser;
Logging modle, for the operation order accessed according to User Page, after record is correspondingly arranged cryptographic Hash URL, to generate browsing histories file.
9. the page layout switch device as described in any one in claim 6 to 8, it is characterised in that
Described first acquiring unit, specifically for the page access of user operation be monitored, and from The interface correspondence that the floating frame that family accesses calls obtains the unified money of the floating frame page in accession page Source location accords with, the ajax page from the interface correspondence acquisition accession page that the ajax of user's access calls URL.
10. the page layout switch device as described in any one in claim 6 to 8, it is characterised in that The instruction of described page layout switch includes for indicating the page to advance and/or indicating the page layout switch of page back to refer to Order.
CN201510217550.3A 2015-04-30 2015-04-30 A kind of page switching method and device Pending CN106201562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510217550.3A CN106201562A (en) 2015-04-30 2015-04-30 A kind of page switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510217550.3A CN106201562A (en) 2015-04-30 2015-04-30 A kind of page switching method and device

Publications (1)

Publication Number Publication Date
CN106201562A true CN106201562A (en) 2016-12-07

Family

ID=57457815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510217550.3A Pending CN106201562A (en) 2015-04-30 2015-04-30 A kind of page switching method and device

Country Status (1)

Country Link
CN (1) CN106201562A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255550A (en) * 2017-11-27 2018-07-06 深圳市小牛在线互联网信息咨询有限公司 Method for page jump, device, storage medium and computer equipment
CN109446459A (en) * 2018-10-11 2019-03-08 北京三快在线科技有限公司 Page switching method and device, electronic equipment and storage medium
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN110209966A (en) * 2019-04-15 2019-09-06 优信拍(北京)信息科技有限公司 A kind of webpage method for refreshing, Web page system and electronic equipment
CN111800666A (en) * 2020-07-08 2020-10-20 深圳创维-Rgb电子有限公司 WebOS smart television hot key response method and device and smart television
CN111831942A (en) * 2019-04-15 2020-10-27 阿里巴巴集团控股有限公司 Method and device for displaying search results on page and electronic equipment
CN113468450A (en) * 2021-07-06 2021-10-01 北京有竹居网络技术有限公司 Page control method and device
CN115794634A (en) * 2022-11-29 2023-03-14 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103618707A (en) * 2013-11-21 2014-03-05 福州市勘测院 WEB front-end rapid calling system used for digitization city management system
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN105183851A (en) * 2015-09-08 2015-12-23 上海上讯信息技术股份有限公司 Interaction method and device overcoming browser same-origin policy limit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN103618707A (en) * 2013-11-21 2014-03-05 福州市勘测院 WEB front-end rapid calling system used for digitization city management system
CN105183851A (en) * 2015-09-08 2015-12-23 上海上讯信息技术股份有限公司 Interaction method and device overcoming browser same-origin policy limit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "实现ajax请求内容时使用浏览器后退和前进功能", 《CNBLOG》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255550A (en) * 2017-11-27 2018-07-06 深圳市小牛在线互联网信息咨询有限公司 Method for page jump, device, storage medium and computer equipment
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN109446459A (en) * 2018-10-11 2019-03-08 北京三快在线科技有限公司 Page switching method and device, electronic equipment and storage medium
CN109446459B (en) * 2018-10-11 2021-08-27 北京三快在线科技有限公司 Page switching method and device, electronic equipment and storage medium
CN110209966A (en) * 2019-04-15 2019-09-06 优信拍(北京)信息科技有限公司 A kind of webpage method for refreshing, Web page system and electronic equipment
CN111831942A (en) * 2019-04-15 2020-10-27 阿里巴巴集团控股有限公司 Method and device for displaying search results on page and electronic equipment
CN110209966B (en) * 2019-04-15 2022-03-11 优信拍(北京)信息科技有限公司 Webpage refreshing method, webpage system and electronic equipment
CN111800666A (en) * 2020-07-08 2020-10-20 深圳创维-Rgb电子有限公司 WebOS smart television hot key response method and device and smart television
CN111800666B (en) * 2020-07-08 2022-04-29 深圳创维-Rgb电子有限公司 WebOS smart television hot key response method and device and smart television
CN113468450A (en) * 2021-07-06 2021-10-01 北京有竹居网络技术有限公司 Page control method and device
CN115794634A (en) * 2022-11-29 2023-03-14 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium
CN115794634B (en) * 2022-11-29 2023-12-01 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106201562A (en) A kind of page switching method and device
CN102597993B (en) Managing application state information by means of uniform resource identifier (URI)
CN102567516B (en) Script loading method and device
US10691875B2 (en) Populating visual designs with web content
CN104424199A (en) Search method and device
CN101558629A (en) Aggregating portlets for use within a client environment without relying upon server resources
US20190065444A1 (en) Techniques for efficient & high-throughput web content-creation
CN106354483B (en) Data processing method and device and electronic equipment
CN111104635A (en) Table webpage generation method and device
CN104426925A (en) Webpage resource obtaining method and apparatus
CN105745644A (en) Establishment of state representation of a web page represented in a web browser
CN106202100A (en) The loading method of the page and device
CN110941428B (en) Website creation method and device
CN110968314B (en) Page generation method and device
CN103858121A (en) Method and system for making Web application obtain database change
CN108549537A (en) The method and system of user data acquisition based on Android terminal
CN105074652B (en) For remotely providing the method and computer system of application function to printer
CN104899217B (en) A kind of implementation method and device of custom feature
CN105630310A (en) Method and device for displaying titles during graph group switching
CN104021131A (en) Multi-dimensional page releasing method, device and system
CN110362341A (en) Business management method, device, equipment and storage medium based on micro services framework
CN104731817A (en) Webpage display method and device
CN105468776A (en) Method, device and system for operating database
CN105095376A (en) Method and device for establishing browser local homepage in mobile terminal
CN104715067A (en) Method, device and system for making key words on web page and browser client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207