A method and device for realizing page switching
A page switching and page technology, which is applied in the direction of program control device, user interface execution, website content management, etc., can solve the problems of wasting terminal display resources, small screen, and shortage of mobile terminal display resources, so as to improve user experience and utilize display resource effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] figure 1 The flow chart of the method for implementing page switching provided by Embodiment 1 of the present invention, as shown in figure 1 As shown in , the process may specifically include the following steps:
[0050] In step 101, when starting a web application, the web engine creates a window (or called a page rendering window) containing N canvases, where N is a positive integer greater than 1, and the canvases are set to overlap in the window. The so-called overlapping setting means that the coordinate positions of these canvases on the x and y axes are consistent, and the coordinate positions on the z axis are offset. The plane formed by the x and y axes is a plane parallel to the terminal screen, and the z axis is parallel to the terminal screen. The terminal screen is vertical, such as figure 2 as shown in figure 2 Take N as 3 as an example. The N canvases in the window can be fully overlapped or partially overlapped. If they are partially overlapped, ...
Embodiment 2
[0070] image 3 The flow chart of the method for realizing page switching provided by Embodiment 2 of the present invention, such as image 3 As shown in , the process may specifically include the following steps:
[0071] Step 301 is the same as step 101 and will not be repeated here.
[0072] In step 302, the web engine acquires the page content to be rendered, switching mode and animation information from the server.
[0073] In this embodiment, after the web engine requests the page content from the server, the server returns the http response to the web engine to carry the page content to be rendered, as well as the switching mode and animation information. For example, a field can be added in the header of the http message to carry the switching mode and animation information, and a field can also be added in the content of the http message to carry the switching mode and animation information.
[0074] The switching mode and animation information carried may be the d...
Embodiment 3
[0088] Figure 4 The structure diagram of the device provided by Embodiment 3 of the present invention, the device can be set in the web engine, such as Figure 4 As shown in , the device may specifically include: a creation unit 01 , a first acquisition unit 02 , a rendering unit 03 , and a switching unit 04 , and may further include a second acquisition unit 05 .
[0089] The creation unit 01 is responsible for creating a page rendering window including N canvases that are fully overlapped or partially overlapped, where N is a positive integer greater than 1. When starting a web application, or responding to a user request, the creation unit 01 creates a page rendering window.
[0090] The first obtaining unit 02 is responsible for obtaining the page content to be rendered from the server. The rendering unit 03 renders the page content obtained by the first obtaining unit 02 into a currently undisplayed canvas in the page rendering window.
[0091]Wherein, the first acqui...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


