Cross-domain IFRAME height adaption method based on message transmission and system thereof

An adaptive system and message transmission technology, applied in other database retrieval, special data processing applications, website content management, etc., can solve the problems of high browser memory usage, waste of server resources, low efficiency of nested IFRAME, etc. Low occupancy, saving server resources

Inactive Publication Date: 2016-09-07
北京思特奇信息技术股份有限公司
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) The efficiency of using nested IFRAME is low, one IFRAME is equivalent to a complete page, and the memory usage of the browser is high;
[0005] (2) Each time the height is set, a request is actually sent to the background server. IFRAME height self-adaptation belongs to the logic of the foreground. This

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
  • Cross-domain IFRAME height adaption method based on message transmission and system thereof
  • Cross-domain IFRAME height adaption method based on message transmission and system thereof
  • Cross-domain IFRAME height adaption method based on message transmission and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Embodiment 1. A cross-domain IFRAME highly adaptive method based on message transmission. Combine below figure 1 The method provided in this embodiment will be described.

[0026] see figure 1 , the method provided by this embodiment includes: S1. Detect whether the current page is a subpage embedded in another parent page, and if so, obtain the subpage content height value of the current subpage.

[0027] Specifically, since the method provided in this embodiment is mainly applicable to the scene of embedding a webpage, it is first necessary to detect whether the current page is a child page embedded in another parent page, if not, the method provided in this embodiment is not applicable. If it is detected that the current page is indeed a subpage embedded in another parent page, that is, the current page is an embedded page with another parent page, then the content height value of the subpage of the current subpage is obtained.

[0028] S2. Send the acquired conte...

Embodiment 2

[0037] Embodiment 2. A cross-domain IFRAME highly adaptive system based on message transmission. Combine below figure 2 The system provided by this embodiment is described.

[0038] The system provided in this embodiment includes a detection unit 101 , a height acquisition unit 102 , a package unit 103 , a sending unit 104 , a receiving unit 105 , a search unit 106 , a judgment unit 107 and an update unit 108 .

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 cross-domain IFRAME height adaption method based on message transmission and a system thereof. The method comprises following steps: whether the current page is a subpage embedded in another parent page or not is detected, if the current page is a subpage embedded in another parent page, the subpage content height value of the current subpage is obtained; the obtained subpage content height value is sent to a corresponding parent page in the form of messages; the parent page receives the subpage content height value, corresponding IFRAME of the subpage in the parent page is searched according to the message source; the height value of corresponding IFRAME in the parent page is updated by the parent page according to the subpage content height value in the subpage content height message. According to the method, the subpage directly sends the subpage content height value in the form of messages to the parent page, and the parent page updates the corresponding IFRAME height value according to the received subpage content height value; there is no need to add IFRAME as message transit to the subpage so that the memory occupation of a browser is low; according to the method and the system, no server is related so that server resource is saved.

Description

technical field [0001] The invention relates to the technical field of web page development, in particular to a message transmission-based cross-domain IFRAME highly self-adaptive method and system thereof. Background technique [0002] The existing technology mainly relies on embedding the same-domain IFRAME page (A2) in the cross-domain IFRAME page (B), passing the height of page B to A2 through URL parameters, and then updating the height of the IFRAME where page B is located on page A2, usually specific The method is: by setting a transit page a under domain A, it is embedded in page b under nested domain B, and page b is embedded in the main interface m under domain A. When the browser visits page m, it loads page b, triggers the onload event of page b to obtain the height of its own page, then page b loads page a, and assigns its height as a parameter to the location object of page a, and page a is The height of page b can be obtained through location.hash. [0003] ...

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
IPC IPC(8): G06F17/30G06F9/44
CPCG06F8/20G06F16/958
Inventor 刘嘉华
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products