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

Method and system for menu repositioning after overall refresh of a single page

A repositioning, single-page technology, applied in the network field, can solve the problem that the menu cannot maintain state data, etc., achieve the effect of reducing memory consumption, reducing processing pressure, and solving cache problems

Active Publication Date: 2016-05-25
BEIJING TEAMSUN TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on the above problems, the present invention provides a method and system for menu repositioning after a single page is refreshed as a whole, which quickly and effectively solves the problem that the menu cannot maintain the status data of the last operation after a single page is refreshed as a whole

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
  • Method and system for menu repositioning after overall refresh of a single page
  • Method and system for menu repositioning after overall refresh of a single page
  • Method and system for menu repositioning after overall refresh of a single page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The specific implementation of the method and system for relocating the menu after a single page overall refresh in the embodiment of the present invention will be described below with reference to the drawings in the description.

[0043] The embodiment of the present invention provides a method for menu repositioning after a single page is refreshed as a whole, such as figure 1shown, including the following steps:

[0044] S100. The server adds an html tag to the menu item link of the currently requested single page, and locates the position of the menu item of the currently requested single page;

[0045] Specifically, the background menu generation logic intercepts the current URL information through the request request, and adds html tags to the newly generated menu item data. After the page is output, the front-end javascript code can analyze this specific tag and locate the last menu selection. position, so as to achieve the purpose of accurate menu positioning....

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 method and system for relocating menus after the overall refreshment of a single page. The method comprises the following steps: a server adding an HTML mark in the menu item link of the current requested single page and locating the position of the menu item of the current requested single page; a browser reading scroll bar position data corresponding to menu selection operation of the menu item of the current single page according to a current URL and storing the scroll bar position data into cookies of the browser; when the single page is refreshed, according to the HTML mark and the URL before the refreshment, the browser dynamically reading the scroll bar position data from the cookies to locate the position of the menu item and the position of a scroll bar after the refreshment. The state data of the menu selection operation before the refreshment are stored through the cookies of the browser of a client-side, so that the precessing pressure and the memory consumption of a server-side can be greatly reduced. Meanwhile, the cache problem of the cookies is solved. Consequently, the menu can be quickly and accurately relocated after the overall refreshment of the single page.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and system for relocating menus after a single page is refreshed as a whole. Background technique [0002] Traditional web (network) applications are designed using multi-page technology, such as HTML (HypertextMarkupLanguage, hypertext markup language) to achieve layout, click on the menu, partial page refresh, the user can clearly see the refresh process, experience slightly worse. However, with the evolution of web2.0 technology and the maturity of ajax technology, users increasingly prefer single-page applications, which is more in line with the usage habits of traditional C / S desktop applications. [0003] A single-page application means that users load an independent HTML page through a browser and do not need to leave this navigation page, which is also its unique advantage. The menu is an area in a single page, called the menu area. The selection of the menu i...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0482
Inventor 刘兆喜邵文韬刘兴辉张志武
Owner BEIJING TEAMSUN TECH
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