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

Method for storing and locating selected content on web page

A content and web page technology, applied in the field of storing and locating content on web pages, can solve the problems of different DOM tree structures, the inability to locate the selected content, and the inability to locate and select the content, etc., to achieve accurate and stable positioning and overcome differences.

Inactive Publication Date: 2014-10-08
WUXI CITY CHONGAN DISTRICT TECH ENTREPRENEURSHIP SERVICE CENT
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. When used on a static web page, after the web page document is modified, the new web page cannot locate and select content based on the saved XPath path information;
[0006] 2. When used in dynamic web pages, since the browser plug-in may add some tags to the web page to achieve the plug-in effect, the saved XPath path cannot be used to locate the selected content when the new plug-in cannot be loaded;
[0007] 3. The way the browser on the mobile terminal presents the webpage is different from that on the PC, that is, the generated DOM tree structure is different, so the selected content saved on the PC may not be able to be located on the webpage of the mobile terminal

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The technical scheme of the present invention will be further described in detail below:

[0039] The invention discloses a method for storing and locating selected content on a web page. It is provided with a web page element tag table. The root node of the web page text is used as a reference node to calculate the offset between the start position and the end position of the content selected by the user. Web page url, reference node, selected content, offset of the start position of the selected content, and offset of the end position of the selected content are saved to the server as positioning information. When the selected content needs to be reproduced, the positioning information is obtained from the server and based on the positioning information Locate the selected content in the new webpage, where the steps to calculate the offset between the start position and the end position of the user selected content are as follows:

[0040] Step 1.1), calculate the content ...

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 for storing and locating selected content on a web page. According to the method, a root node of a main body of the web page is used as a reference node, the offset of the initial position and the end position of the content selected by a user is worked out, and the web page url, the reference node, the selected content, the offset of the initial position of the selected content and the offset of the end position of the selected content are used as locating information to be stored in a server; when the selected content needs to reappear, the locating information is obtained from the server, and the selected content is located in a new web page according to the locating information; when locating fails, locating can be conducted again according to the total number of times of appearance of the selected content in the web page and the sequence of the appearance times. The method for storing and locating selected content on the web page is high in adaptability and the method is accurate and stable no matter whether the method is applied to a computer or a mobile terminal.

Description

Technical field [0001] The invention belongs to the technical field of web pages, and particularly relates to a method for storing and locating selected content on a web page. Background technique [0002] In the prior art, there are two methods for storing and locating selected content on a web page. One method is to locate the selected content by saving the screen coordinates where the operation started when the user used the mouse to mark the last time. The limitation is very obvious. [0003] Another method is to locate the XPath path that saves the content selected by the user. DOM (Document Object Model) is a standard programming interface for processing extensible markup languages ​​(including HTML). It treats HTML documents as a tree with many knots. Point tree, while XPath is a path expression following the DOM path format, which can describe the sequence of steps from one DOM node to another DOM node. This method realizes the location of the selected content by recordin...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/3331G06F40/117
Inventor 肖运根章隆泉过俊宏
Owner WUXI CITY CHONGAN DISTRICT TECH ENTREPRENEURSHIP SERVICE CENT
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