Unlock instant, AI-driven research and patent intelligence for your innovation.

Correspondence device and method of webpage and document object model (DOM)

A document object model and web page technology, applied in the computer field, can solve the problems of complex system and low programming efficiency, and achieve the effect of simple web page structure and improved flexibility

Inactive Publication Date: 2011-09-28
SHENZHEN KINGDEE MIDDLEWARE
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0020] In order to solve the problem of system complexity and low programming efficiency caused by dividing and conquering the front and back when using Flash in the pages of the Portal layout in the prior art, the embodiment of the present invention proposes a web page and document object model Corresponding device and method

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
  • Correspondence device and method of webpage and document object model (DOM)
  • Correspondence device and method of webpage and document object model (DOM)
  • Correspondence device and method of webpage and document object model (DOM)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] An embodiment of the present invention proposes a device corresponding to a web page and a document object model, including:

[0055]The document object model module 1 is used to store the content of each frame in the page and the corresponding absolute position of each frame.

[0056] In the embodiment of the present invention, the content of each frame is stored in the document object model module, and the absolute position corresponding to each frame in the page is stored, so as to realize a one-to-one correspondence between the content and each frame in the page of the Portal layout. Compared with the way in which the DOM in the prior art adopts the correspondence between the document and the row and column where the frame is located, this method can realize that only the absolute position parameter stored in each frame in the DOM needs to be changed when the frame is moved. The embodiment of the present invention can realize that when dragging the frame body in the...

Embodiment 2

[0058] The second embodiment of the present invention proposes a device corresponding to a web page and a document object model, the structure of which is as follows figure 1 shown, including:

[0059] The document object model module 1 is used to store the content of each frame in the page and the corresponding absolute position of each frame;

[0060] The absolute position calculation module 2 is used to obtain the width and height of each frame, and calculate the absolute pixel position of each frame in the page according to the width and height of each frame in the page;

[0061] The position change calculation module 3 is configured to obtain a new absolute position of the frame according to the position change of the frame, and change the absolute pixel position corresponding to each frame in the document object model module according to the new absolute position.

[0062] In the second embodiment of the present invention, an absolute position calculation module 2 and / o...

Embodiment 3

[0096] The third embodiment of the present invention proposes a method for corresponding a web page and a document object model, including:

[0097] A corresponding relationship is established between each frame in the page and the corresponding entry of the document object model through the absolute position of the frame in the page.

[0098] In the embodiment of the present invention, in the document object model, through the absolute position of each frame in the page, a corresponding relationship is established between the frame in the page and the content of each corresponding frame in the DOM, so as to One-to-one correspondence between the content and each box in the page of the Portal layout. Compared with the way in which the DOM in the prior art adopts the correspondence between the document and the row and column where the frame is located, this method can realize that only the absolute position parameter stored in each frame in the DOM needs to be changed when the f...

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 provides a correspondence device and a method of a webpage and a document object model (DOM) and belongs to the technical field of a computer. In the embodiment of the invention, a content of each frame body is stored in a DOM module, and a corresponding absolute position of each frame body in a page is stored to realize one-to-one correspondence between the content and each frame body in the page of a portal layout. Compared with a mode of correspondence between rows and lines where documents and the frame bodies are located for the DOM in the prior art, the invention has the advantages that: only parameters of the absolute position stored in each frame body in the DOM are required to be changed when the frame bodies move. By the embodiment of the invention, the problem of Flash failure caused by dragging of the frame bodies after Flash is applied to the webpage of the portal layout in the prior art can be solved, the webpage of the portal layout in the prior art can be simpler in structure, and the flexibility of a system is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a corresponding device and method of a web page and a document object model. Background technique [0002] Portal is an Internet page programming language, which is usually used to provide personalization, single sign-on, aggregate the content of various information sources, and serve as the host of the presentation layer of the information system. The Document Object Model (Document Object Model, DOM) is a standard adapter for processing XML recommended by the W3C organization. The traditional Portal layout is realized by using the position mutual exclusion between different layers (DIV) in the HTML webpage. When the Portal application frame moves, it will generate node movement relative to the DOM document flow. "Node movement relative to the DOM document flow" on the page means that a DOM node (such as an XML element, HTML tag) is moved to the front, back or inside of other...

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
Inventor 谢伟幸
Owner SHENZHEN KINGDEE MIDDLEWARE