Supercharge Your Innovation With Domain-Expert AI Agents!

Cross-domain page display control method and device

A technology of page display and control method, applied in the network field, can solve problems such as abnormal display and inability to display cross-domain pages in different sizes

Inactive Publication Date: 2011-09-14
ZTE CORP
View PDF2 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a cross-domain page display control method and device to solve the problem that the existing cross-domain page display cannot be displayed in a normal size or cannot be displayed normally

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 page display control method and device
  • Cross-domain page display control method and device
  • Cross-domain page display control method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] The cross-domain page display control method provided by the embodiment of the present invention is used for controlling the frame height and width in a cross-domain scene in a webpage application. Its process is as follows figure 2 As shown, the principle is as image 3 As shown, the method includes the following steps:

[0030] Step S11: The script of the first page in the first domain is initialized, the loading box for loading the second page in the second domain is loaded in the first page, and the domain where the first page is located i...

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 page display control method and a cross-domain page display control device. The method comprises the following steps of: loading a loading frame used for loading a second page in a second domain in a first page and notifying the domain in which the first page is located to a second page script; loading an intermediate frame used for loading an intermediate page in a first domain in the second page, and constructing a uniform resource locator (URL) in the intermediate page according to the domain in which the first page is located; setting the URL as an address attribute of the intermediate frame and notifying the size parameter of the second page to an intermediate page script in the first domain; initializing the intermediate page script; comparing the size parameter of the second page with the size parameter of the loading frame; and when the size parameter of the second page is greater than the corresponding size parameter of the loading frame, adjusting the size of the loading frame to be the same as that of the second page. The size adjustment of the loading frame of a cross-domain page is controlled through the intermediate page, so that the problem of a display error when the sizes of the loading frame and a loaded non-local domain page are inconsistent is avoided.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a cross-domain page display control method and device. Background technique [0002] In a page (Web) application, interactive control of various elements in a page is extremely common, for example, a button controls the content of an input box, and the like. However, for security reasons, two pages belonging to different domains cannot implement interactive access control. [0003] For example figure 1 As shown, page A belongs to domain (domain) 1, there is a frame (iframe) 1 in page A, page B is loaded in frame (iframe) 1, and page B belongs to domain (domain) 2. In this case, due to the limitation of browser cross-domain operation control, page B cannot access and control the height / width of frame (iframe) 1 belonging to domain (domain) 1 (refer to the attached figure 1 Arrow 1), if the actual height / width of page B does not match the height / width of frame (iframe) 1, it wi...

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 ZTE CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More