Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page-switching method and device

A page switching and page technology, applied in the field of web applications, can solve problems such as being unable to return to page A

Active Publication Date: 2014-08-13
ALIBABA GRP HLDG LTD
View PDF11 Cites 48 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there may be some problems in practical applications. For example, after switching from page A to page B through the above-mentioned asynchronous loading method, if the user clicks the back button of the browser, he will find that he cannot return to page A, etc. Wait

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page-switching method and device
  • Page-switching method and device
  • Page-switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

[0027] First of all, it needs to be explained that, in the process of implementing this application, the inventor found that the reason why the existing asynchronous loading technology cannot go back to the previous page is that each AJAX request cannot be executed in the browser's In other words, when the user clicks the browser's "Back" button or the "Backspace" key on the keyboard to perform a return operation after continuously requesting multiple pages of documents, the browser will find the previous page's docume...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a page-switching method and device. The page-switching method comprises the following steps: monitoring an operation request for switching a present page to a target page and acquiring a resource address of the target page; triggering a hash value changing event of a browser by modifying a hash value of URL (Uniform Resource Locator) of the present page, thereby recording the change of the hash value in a protogenous access history by the browser and providing a window handle, wherein the modified hash value contains the resource address information of the target page; acquiring the resource address of the target page from the window handle and sending an asynchronous loading request to a corresponding Web server according to the resource address of the target page; showing the target page in the window of the present page according to the resource data fed back by the Web server. According to the page-switching method, a basis for realizing the correct page advancing or retreating under the asynchronous loading condition is supplied.

Description

technical field [0001] The present application relates to the technical field of Web applications, in particular to a page switching method and device. Background technique [0002] Web application is an application form that depends on the client browser and is realized by HTML (Hyper text Markup Language, Hypertext Markup Language), CSS (Cascading Style Sheet, Cascading Style Sheet), JS (Java Script) and other technologies. Switching between views (for example, switching page A displayed in the page window to page B) usually requires a browser jump, that is, a request for a new resource address. After the server response is completed, the browser reloads, so that The new page content is displayed in the page window. It is worth noting that while the browser is reloading, the user will see a blank page. On smart mobile terminals, due to restrictions such as mobile bandwidth, users will spend a longer time facing a white screen. [0003] In order to avoid the occurrence o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/972
Inventor 杨振楠
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products