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

Page reusing method and page reusing device

A multiplexing device and page technology, applied in the field of Web and Internet, can solve problems such as unrealizable, delayed response, low efficiency of IFRAME frame display, etc.

Active Publication Date: 2015-04-29
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above-mentioned page reuse based on the IFRAME technology faces the following problems: First, to realize the interaction between the IFRAME and the main page and the IFRAME page, the Javascript required is relatively complex, such as page dragging, user-defined page layout and other operations. can not achieve
Secondly, IFRAME uses the browser refresh mechanism in the foreground instead of the mechanism of running requests in the background. There will be a problem of delayed response, and it is difficult to monitor the response status, resulting in embedded pages that cannot be highly adaptive and cause scroll bars to appear. problems such as
In addition, the display efficiency of the IFRAME frame is low, especially in the IE browser, only up to 4 IFRAME requests can be initiated at the same time. When more than 4 IFRAME pages are embedded, some IFRAME page requests will hang
On the other hand, each IFRAME page must be an independent and complete page, and the embedded page cannot use the resources loaded by the main page, which will be reflected when some large Javascript libraries (such as UI libraries) are used for page development. huge waste of resources
[0005] The above problems indicate that there are some functional and performance defects in the way of realizing page reuse based on IFRAME technology

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 reusing method and page reusing device
  • Page reusing method and page reusing device
  • Page reusing method and page reusing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0104] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of the present invention.

[0105] The technical core of the present invention is: abstract the basic life cycle of the page and encapsulate it as a Javascript object base class, and each page that needs to be reused needs to inherit the base class and implement the corresponding life cycle method. The main page parses page configuration information, loads and displays page objects on demand through AJAX requests, and manages the life cycle of page objects. The pages interact ...

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 page reusing method and a page reusing device. The page reusing method comprises the following steps of receiving a main page access request; sending out a common resource acquiring request to a resource library according to the main page access request; receiving and loading common resources; transmitting a query request to a main page configuration information library; receiving main page configuration information returned from the main page configuration information library; sending out an AJAX (asynchronous JavaScript and XML) request to the resource library according to the main page configuration information; asynchronously acquiring a definition of a fragment; establishing the fragment according to the definition of the fragment; transmitting the AJAX request to the fragment; analyzing request parameters in the AJAX request; sending out a private resource acquiring request to the resource library; receiving private resources returned from the resource library; loading the private resources; acquiring displaying data from the main page configuration information library; processing the displaying data; initializing the fragment; adding the initialized fragment on a main page DOM (document object model) tree; invoking an interface between the main page DOM tree and the fragment; performing information interaction between the main page DOM tree and the fragment; and responding user operation.

Description

Technical field [0001] The invention relates to Web Internet technology, in particular to a method and device for page reuse based on Javascript object encapsulation. Background technique [0002] With the rapid development of the Internet industry today, web sites have evolved from simple applications such as information sharing and information transmission in the past to today’s rich and colorful web applications, bringing convenience to people’s work and life, and becoming indispensable in people’s work and life. The missing part. As web applications pay more and more attention to excellent user experience, web pages are becoming more and more complex. Effectively increasing the reuse rate of pages can greatly improve page development efficiency. [0003] Currently, most web applications use IFRAME technology to achieve page reuse. You can embed other pages in the main page window through the IFRAME tag, so you can reuse the page code by means of one page carrying multiple pag...

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/958
Inventor 郑振雷严波张力引
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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