CN109213946A - The cross-domain height adaptive method and device of iframe - Google Patents

The cross-domain height adaptive method and device of iframe Download PDF

Info

Publication number
CN109213946A
CN109213946A CN201710523794.3A CN201710523794A CN109213946A CN 109213946 A CN109213946 A CN 109213946A CN 201710523794 A CN201710523794 A CN 201710523794A CN 109213946 A CN109213946 A CN 109213946A
Authority
CN
China
Prior art keywords
page
file
file destination
client
service end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710523794.3A
Other languages
Chinese (zh)
Inventor
邹士杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710523794.3A priority Critical patent/CN109213946A/en
Publication of CN109213946A publication Critical patent/CN109213946A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a kind of cross-domain height adaptive method and devices of iframe, interface page (page C) is embedded in host's page (page A), and first page (page B) is embedded in interface page, wherein, page A and page C belong to not same area, and page A and page B belong to the same domain.Page A transmits file read request to page C, and this document read requests include the file destination mark of the domain name of page A and the file destination of request reading;Then, page C identifies corresponding file destination to oneself corresponding file service end request file destination;File service end obtains corresponding file destination using file destination mark and is loaded onto page C, meanwhile the size of file destination is obtained, and page A is passed to by page B, page A determines the iframe height of page A according to the size of file destination and the display parameters of client.To realize the iframe height of page A actual height of the adaptive feed-forward network page after being embedded in page A always.

Description

The cross-domain height adaptive method and device of iframe
Technical field
The present invention relates to field of computer technology more particularly to a kind of cross-domain height adaptive method and devices of iframe.
Background technique
Cross-domain is exactly the resource for going to request another domain name from the webpage of a domain name, for example, the www.baidu.com page Go the resource of request www.google.cn.For stringent, the cross-domain JavaScript for referring to browser cannot operate not same area, Different agreement or the corresponding page of different port, this is caused by the security restriction-origin policy applied as browser to JS, If a webpage can optionally access the resource of another website, it is possible in the completely unwitting feelings of client There is safety problem under condition.
In some cases, it needs to carry out cross-domain access, for example, there is multiple and different subdomains in some intra-company, one is Location.company.com, and application program is placed on app.company.com, at this moment wants to go from app.company.com The resource of access location.company.com just belongs to cross-domain.
Iframe is meant that creation includes the inline frame of another document, and iframe is generally used to comprising other page Face, for example, another website can be loaded in a Website page, alternatively, the content of the load other pages of our station.Iframe high Degree adaptively considers the beauty at interface, conceals the frame and scroll bar of iframe, people is allowed not see that it is a frame.Such as Fruit iframe calls the page of the same fixed height always, and dead iframe height can be directly write in configuration file; If iframe will switch the page, alternatively, by do DOM dynamic operation comprising the page, at this time, it is necessary to synchronous iframe height With by the actual height comprising the page.For example, including page B in page A, and A and B belong to different domains, iframe height is certainly Adapt to be exactly the height of page B is assigned to page A iframe height, that is, iframe height adaptive the result is that making page The height of the adaptive page B of the iframe of face A.
At present there are many kinds of iframe height adaptive method, still, these methods be all by host's page (for example, Page A in examples detailed above) iframe height be adjusted to by the height comprising the page (for example, page B in examples detailed above), It, can be according to host's DOM structure or rendering render by the height value comprising the page but after being entered host's page comprising the page The context relation of tree and change, thus occur host iframe obtain by comprising the page height value inaccuracy asking Topic, and then cause to cannot achieve height adaptive when the cross-domain acquisition content of pages of client.
Summary of the invention
In view of the above problems, it proposes the present invention provides a kind of cross-domain height adaptive method and device of iframe, with Solve the technical issues of cannot achieve height adaptive when the cross-domain acquisition content of pages of client.
In a first aspect, be applied in client this application provides a kind of cross-domain height adaptive method of iframe, it is described It include interface page in the page of client, the interface page is belonging respectively to different domains, the interface from the client Include the first page with the client same area in the page, which comprises
To the interface page transmit file read request, the file read request include the client domain name and File destination mark, the file read request is for obtaining the interface page and the file destination from file service end It identifies the size of corresponding file destination and passes to the first page;
The size of the file destination stored in the file service end is obtained by the first page;
According to the display parameters of the size of the file destination and the client, it is calculated in the client The height of iframe.
Optionally, the file read request is for making the interface page obtain the file destination from file service end Corresponding file destination content, the display parameters at the file service end and the file destination content is identified to take in the file The display height at business end;The method also includes:
When the display parameters for determining the file service end are identical as the display parameters of the client, by the client The height of iframe is set as the file destination content in the display height at the file service end in end.
Optionally, the method also includes:
The domain name character string of the client and the file destination identification strings are added to the file reading to ask In the header information asked;Alternatively,
The domain name character string of the client and the file destination identification strings are added to the file service end File server requests uniform resource position mark URL in parameter.
Optionally, height of the file destination content in the interface page includes the file destination content Maximum value in scrollheight, offsetHeight and clientHeight of body object.
Second aspect, present invention also provides a kind of cross-domain height adaptive methods of iframe, are applied to file service end, And the file service end and the client belong to different domains, the file service end is embedded in first page, and described the One page is hidden at the file service end, and interface page corresponding with the file service end is embedded in the client, The described method includes:
The file read request that the client is sent is received, the file read request includes the domain name of the client And file destination mark;
The file destination mark is obtained, and the file destination is obtained according to file destination mark and is taken in the file The storage address at business end;
The size of the file destination and the file destination is obtained according to the storage address;
The file destination is loaded into the interface page corresponding with the file service end;
The size of the file destination is transmitted to the client by the first page so that the client according to The display parameters of the size of the file destination and the client determine the height of the iframe of the client.
Optionally, the method also includes:
Display height by the display parameters at the file service end and the file destination at the file service end is led to Cross the first page and pass to the client so that the client the display parameters that determine the file service end with When the display parameters of the client are identical, the file destination is set in the text by the iframe height of the client The display height of part server-side.
Optionally, described identified according to the file destination obtains file destination, and the file destination is loaded onto institute State the unified interface page, comprising:
The file destination for obtaining word format is identified according to the file destination;
The file destination of the word format is converted to the file destination of hypertext markup language format;
The file destination of the hypertext markup language format is loaded into the interface page.
Optionally, the method also includes:
The only vertical scroll bar in DOM element of the display comprising the innermost layer of the file destination.
The third aspect, this application provides a kind of cross-domain highly self-adapting apparatus of iframe, are applied in client, described It include interface page in the page of client, the interface page is belonging respectively to different domains, the interface from the client Comprising the first page with the client same area in the page, described device includes:
Transfer module is requested, for transmitting file read request to the interface page, the file read request includes The domain name and file destination of the client identify, and the file read request is for making the interface page from file service end Acquisition identifies the size of corresponding file destination with the file destination and passes to the first page;
First obtains module, for obtaining the target stored in the file service end text by the first page The size of part;
Computing module, for institute to be calculated according to the size of the file destination and the display parameters of the client State the height of the iframe in client.
Fourth aspect, present invention also provides the cross-domain highly self-adapting apparatus of another iframe, are applied to file service End, and the file service end belongs to different domains from the client, the file service end is embedded in first page, and described First page is hidden at the file service end, and interface page corresponding with the file service end is embedded in the client Face, described device include:
Receiving module, the file read request sent for receiving the client, the file read request include institute State the domain name and file destination mark of client;
First obtains module, for obtaining the file destination mark, and according to file destination mark acquisition Storage address of the file destination at the file service end;
Second obtains module, for obtaining the big of the file destination and the file destination according to the storage address It is small;
Loading module, for the file destination to be loaded into the interface page corresponding with the file service end In;
First transfer module, for the size of the file destination to be transmitted to the client by the first page, So that the client determines the client according to the size of the file destination and the display parameters of the client The height of iframe.
5th aspect, present invention also provides a kind of storage mediums, are stored thereon with program, and described program is held by processor The above-mentioned iframe cross-domain height adaptive method applied in client is realized when row.
6th aspect, present invention also provides a kind of processor, the processor is for running program, described program operation The above-mentioned cross-domain height adaptive method of iframe applied in client of Shi Zhihang.
7th aspect, present invention also provides a kind of storage mediums, are stored thereon with program, and described program is held by processor The above-mentioned cross-domain height adaptive method of the iframe applied to file service end is realized when row.
Eighth aspect, present invention also provides a kind of processor, the processor is for running program, described program operation The cross-domain height adaptive method of the above-mentioned iframe applied to file service end of Shi Zhihang.
By above-mentioned technical proposal, the cross-domain height adaptive method of iframe provided by the invention, in the host's page (page A it is embedded in interface page (page C) in), and is embedded in first page (page B) in interface page, wherein page A and page C belongs to In different domains, page A and page B belong to the same domain.Page A transmits file read request to page C, and this document reading is asked The file destination mark of the file destination of the domain name comprising page A and institute's request is sought, then, page C is corresponding to oneself File service end request file destination identifies corresponding file destination;File service end utilizes file destination mark acquisition pair The file destination answered is loaded onto page C, meanwhile, the size of file destination is obtained, and page A, the page are passed to by page B A determines the iframe height of page A according to the size of the page B file destination transmitted and the display parameters of client.This method The size for the file destination for directly being included according to the insertion page and the display environment of host's page, calculate file destination in host Iframe height needed under page display environment, to realize the iframe height of page A, the adaptive feed-forward network page exists always Actual height after being embedded in page A.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of application scenarios schematic diagram of cross-domain access;
Fig. 2 shows a kind of flow charts of the cross-domain height adaptive method of iframe of the embodiment of the present application;
Fig. 3 shows the flow chart of the cross-domain height adaptive method of the embodiment of the present application another kind iframe;
Fig. 4 shows the flow chart of the cross-domain height adaptive method of another iframe of the embodiment of the present application;
Fig. 5 shows a kind of block diagram of the cross-domain highly self-adapting apparatus of iframe of the embodiment of the present application;
Fig. 6 shows the block diagram of the cross-domain highly self-adapting apparatus of the embodiment of the present application another kind iframe;
Fig. 7 shows a kind of block diagram of the cross-domain highly self-adapting apparatus of iframe of the embodiment of the present application;
Fig. 8 shows a kind of block diagram of loading module of the embodiment of the present application;
Fig. 9 shows the block diagram of the cross-domain highly self-adapting apparatus of the embodiment of the present application another kind iframe;
Figure 10 shows the block diagram of the cross-domain highly self-adapting apparatus of another iframe of the embodiment of the present application.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Referring to Figure 1, a kind of application scenarios schematic diagram of cross-domain access of the embodiment of the present application is shown, it is assumed that have following money Source: page A:Domain1/A.html;Page B:Domain1/B.html;Page C:Domain2/C.html;Script D.js: Domain1/D.js.Wherein, page A, page B and script D belong to the same domain, i.e. Domain1, and page C belongs to another Domain, i.e. Domain2.
Nest relation is that nested page C, A and C belong to different domains in page A, i.e., cross-domain iframe is nested.For reality Existing cross-domain iframe height adaptive, the nested page B and script D.js in page C, and page B is allowed to hide, wherein script D.js writes in the html file of page B.In this example, the page A, B and script D.js are client-sides, and page C is file Service end side.
Wherein, script D.js be used to obtain file destination server-side size (that is, the storage that file destination occupies is empty Between), and the display height of file destination is calculated according to the display parameters of client where page A, and, obtain file destination Display height at file service end.
Fig. 2 is referred to, a kind of flow chart of the cross-domain height adaptive method of iframe of the embodiment of the present application, the party are shown Method is applied in the corresponding client of page A shown in FIG. 1, and the page C in Fig. 1 is interface page hereinafter, under page B is First page in text.
As shown in Fig. 2, this method may comprise steps of:
S110, client transmit file read request to interface page.
This document read requests include the domain name and file destination mark of client;This document read requests are for making interface The page obtains size and the transmitting that corresponding file destination is identified with file destination from file service end (i.e. the server-side of page C) To the first page.
In the present embodiment, client is the corresponding client of host's page, i.e. the corresponding client of page A in Fig. 1.Place The corresponding client of homepage can be the front end page or application program (application, APP) of some websites.
Interface page is the page being nested in host's page, for example, the page C in Fig. 1, file service end are interface pages The corresponding server-side in face.
By taking application scenarios shown in FIG. 1 as an example, page A transmits file read request to page C, in this document read requests Carry the domain name file destination mark corresponding with the file destination that request is read from file service end of page A.
Information is transmitted by the src attribute of iframe between the page with nest relation, for example, page A by oneself Domain name and file destination mark assign the src attribute to the iframe of nested page C, realize the domain name and file destination of page A Mark passes to page C, that is, passes to file service end.
File destination mark can be interacted acquisition by client and file service end, and file destination mark is for unique Identify a file.
In one embodiment of the application, page A (for example, js script in page A) can by the domain name of page A and File destination mark, which is added in the header information of file server requests, is sent to file service end, and file service end passes through detection The header information of file server requests obtains the domain name and file destination mark of page A.
In another embodiment of the application, page A can be directly by the domain name of page A and file destination mark splicing Some parameter into the URL of page C in hash field, passes to file service end, and file service end parses from URL and obtains The domain name and file destination of page A identifies.
That is, page A can transmit the domain name of page A to page C by the src attribute of iframe and file destination identifies, For example, utilize iframe src=" ... server domain name/C.html? client domain name=XXX&& file identification=XXX " > </iframe>transmit the domain name and file destination mark of page A.
File service end is identified according to file destination obtains the corresponding file destination content of file destination mark, and passes through Iframe label comes in file destination content packet, i.e., the content of displaying target file in page C.
S120, the client obtain the size of the file destination.
The size of the available file destination of script D.js, in one embodiment of the application, file service end is by mesh The src attribute that size of the file at file service end is assigned to the iframe comprising page B is marked, in this way, page B can obtain mesh File is marked in the size at file service end, in turn, script D.js can also obtain the size of file destination.
S130, the client are calculated according to the size of the file destination and the display parameters of the client The height of iframe in the client.
Client is calculated according to the size of the file destination received and the display parameters of client in script D.js Actual height after the height of iframe, the i.e. page C insertion page A when displaying target file.Script D.js calculates target File can pass to page A after the display height of page A by page B, due to page B and page A belong to it is same Domain, the DOM element in the accessible page A of page B, so that the display height of file destination is passed to page A.
The display parameters of display where the display parameters of client refer to the client, such as the resolution of the display Rate.File destination is calculated under current display environment according to the resolution ratio of display and the size of file destination in client The display height of (resolution ratio of display where client).
The cross-domain height adaptive method of iframe provided in this embodiment, nested not same area in host's page (page A) Interface page (page C) will realize the content (file destination) that the display interface page is included in host's page;In order to realize Cross-domain height adaptive is embedded in the first page (that is, page B) with host's page same area in interface page.Page C can be incited somebody to action The size of file destination passes to page B, then, by the script D.js in page B according to the size of file destination and A pairs of the page The display parameters answered are calculated display height of the file destination under the display environment of client where page A, and this are shown Show that height passes to page A by page B.Finally, the iframe height comprising page C is set file destination by page A Display height (that is, actual height after page C insertion page A), the final iframe height for realizing page A always with page C Actual height it is consistent, improve the accuracy of the cross-domain height adaptive of iframe.
Fig. 3 is referred to, the flow chart of the cross-domain height adaptive method of the embodiment of the present application another kind iframe is shown, it should It is further comprising the steps of on the basis of method embodiment shown in Fig. 2:
S210, client receive display height of the file destination at the file service end of first page transmitting.
After executing S110, S210 is executed.
Page C load file destination after, the available file destination of script D.js in page C display height (that is, The height of page C).For complete displaying target file, moreover, different browsers determine these three height when parsing the page Justice may not also be identical, and therefore, the display height of page C can take the body object of the file destination of html format Maximum value in scrollheight, offsetHeight and clientHeight.
Then, the display height of page C is assigned to the src attribute of the iframe comprising page B by script D.js, then by the page The height of page C is passed to page A (the transfer mode phase of the size of the transfer mode and file destination of the height of page C by B Together).
Whether the display parameters of S220, the display parameters and client that detect the file service end are identical;If identical, Then execute S230;If it is not the same, then executing S120;
File service end can share its display parameters, and client is after the display parameters for obtaining file service end, judgement Whether the display parameters of the two are identical.Display parameters, that is, display resolution ratio.
S230 sets file destination content in the display height at file service end for the height of iframe in client.
If the display parameters at file service end are identical as the display parameters of client, file destination is at file service end Display height (that is, display height of page C) it is identical as display height (that is, display height of page A) in client, because This, can directly set the iframe height of client to the display height of page C.
The cross-domain height adaptive method of iframe provided in this embodiment obtains file destination in the height at file service end Degree, if the display parameters at file service end (page C) are identical as the display parameters of client (page A), in such cases, mesh The display height that file is marked in page C is identical as the display height in page A, therefore, can be directly by the iframe's of page A Height is set as the display height value of page C, does not need page A according to the size of file destination and recalculates file destination in visitor The display height at family end, adaptive process is simple, and can guarantee the iframe height of page A always with the height phase of page C Deng.
Fig. 4 is referred to, the flow chart of the cross-domain height adaptive method of another iframe of the embodiment of the present application is shown, it should Method is applied to file service end.The interface page at file service end, this document server-side and client are nested in client Belong to different domains, that is, cross-domain access, in order to realize the cross-domain height adaptive of iframe, insertion and client at file service end The first page for holding same area transmits the information at file service end by first page to client.
As shown in figure 4, this method may comprise steps of:
S310, file service end receive the file read request that client is sent.It include client in this document read requests The domain name and file destination at end identify.
S320 identifies acquisition file destination according to file destination and identifies corresponding file destination in the storage at file service end Address.
After file service end obtains file destination mark, the file destination is obtained from database and identifies corresponding target text The actual storage address of part.
S330, file service end obtain the size of file destination content and file destination according to the storage address.
Then, the target text in the corresponding memory space of storage address of the file destination obtained is read at file service end Part.Meanwhile obtaining the size of the file destination.
The file destination of acquisition is loaded into the interface page being embedded in client by S340, file service end.
The file destination of acquisition is included by file service end (that is, page C) by iframe label, is realized target File is loaded into page C.
In one embodiment of the application, file destination is stored in a manner of word at file service end, that is, file Format is doc or docx, and therefore, file service end needs that word formatted file is first converted into hypertext markup language (hyper Textmarkup language, html) format file, then the file destination of html format is loaded into page C.
The size of file destination is passed to first page by S350, file service end.
Client calculates the iframe of client according to the size of the file destination received and the display parameters of client Highly.
The size of file destination is assigned to the src attribute of the iframe comprising page B by page C, and page B is again by file destination Size pass to script D.js.Script D.js is according to the size of file destination and the current display parameters of page A (that is, page A The resolution ratio of place display), file destination is calculated in the display height of page A, and display height is passed into page Height thus is arranged in iframe height comprising page C by face A, page A.
In another embodiment of the application, script D.js can obtain file destination in the display height at file service end (that is, original height of page C), and page A is passed to by page B.And the display parameters at file service end can also be total to Enjoy and give page A, in this way, page A may determine that file service end display parameters and client display parameters it is whether identical, such as Fruit is identical, and the original height value of page C can be directly assigned to the height of the iframe of page A by page A, to make page A's Iframe height is identical as the height of page C.
In another embodiment of the application, multiple vertical scroll bars may be shown by being further fully solved host's page The problem of, when file destination is converted after html file, the style sheet of default is added in the html file of generation, by html text Each paragraph of part all uses paragraph tag (that is,<P>label) to wrap up, and all paragraph tags are wrapped up with<div>box, The DOM element in the div of innermost layer is only allowed to show vertical scroll bar, the vertical scrolling of the DOM element of outer layer covers file destination Item does not allow it to occur, i.e. setting overflow:hidden;Alternatively, scrolling=" no ", can guarantee vertically to roll in this way The uniqueness of dynamic item, is not in two or more vertical scroll bars.
The cross-domain height adaptive method of iframe provided in this embodiment, nested not same area in host's page (page A) Interface page (page C) will realize the content (file destination) that the display interface page is included in host's page;In order to realize Cross-domain height adaptive is embedded in the first page (that is, page B) with host's page same area in interface page.Page C can be incited somebody to action The size of file destination passes to page B, then, by the script D.js in page B according to the size of file destination and A pairs of the page The display parameters answered are calculated display height of the file destination under the display environment of page A, and display height are passed through Page B passes to page A, finally, page A sets the iframe height comprising page C to the display height of file destination (that is, actual height after page C insertion page A), the final iframe height for realizing page A always with the practical height of page C Degree is consistent, improves the accuracy of the cross-domain height adaptive of iframe.
Corresponding to the above-mentioned cross-domain height adaptive embodiment of the method for iframe, present invention also provides the cross-domain height of iframe Spend self-reacting device embodiment.
Fig. 5 is referred to, a kind of block diagram of the cross-domain highly self-adapting apparatus of iframe of the embodiment of the present application, the device are shown Applied in client, comprising interface page in the page of the client, the interface page belongs to respectively with the client Include the first page with the client same area in different domain, the interface page.As shown in figure 5, described device packet Include: request transfer module 510, first obtains module 520 and computing module 530.
Transfer module 510 is requested, for transmitting file read request to the interface page.
The file read request includes that the domain name of the client and file destination mark, the file read request are used Size and the transmitting of corresponding file destination are identified with the file destination in obtaining the interface page from file service end To the first page.
Interface page is the page being nested in host's page, for example, the page C in Fig. 1, file service end are interface pages The corresponding server-side in face.
In one embodiment of the application, page A (for example, js script in page A) can by the domain name of page A and File destination mark, which is added in the header information of file server requests, is sent to file service end, and file service end passes through detection The header information of file server requests obtains the domain name and file destination mark of page A.
In another embodiment of the application, page A can be directly by the domain name of page A and file destination mark splicing Some parameter into the URL of page C in hash field, passes to file service end, and file service end parses from URL and obtains The domain name and file destination of page A identifies.
Information is transmitted by the src attribute of iframe between the page with nest relation, for example, example shown in FIG. 1, The domain name of oneself and file destination mark are assigned the src attribute to the iframe of nested page C by page A, are realized the domain of page A Name and file destination mark pass to page C, that is, pass to file service end.
File destination mark can be interacted acquisition by client and file service end, and file destination mark is for unique Identify a file.
First obtains module 520, for obtaining the target stored in the file service end text by first page The size of part.
In one embodiment of the application, in page nested instances as shown in Figure 1, file service end is by file destination Size at file service end is assigned to the src attribute of the iframe comprising page B, in this way, page B can obtain file destination Size at file service end can also obtain the big of file destination with the page B script D.js for belonging to the same domain in turn It is small.
Computing module 530, for being calculated according to the size of the file destination and the display parameters of the client The height of iframe in the client.
For example, in example shown in FIG. 1, script D.js is according to the display of the size and client of the file destination received The height of the iframe of client, i.e. practical height after the page C insertion page A when displaying target file is calculated in parameter Degree.Script D.js calculates file destination after the display height of page A, page A can be passed to by page B, due to page Face B and page A belongs to the same domain, the DOM element in the accessible page A of page B, thus by the display height of file destination Pass to page A.
The display parameters of display where the display parameters of client refer to the client, such as the resolution of the display Rate.File destination is calculated under current display environment according to the resolution ratio of display and the size of file destination in client The display height of (resolution ratio of display where client).
The cross-domain highly self-adapting apparatus of iframe provided in this embodiment, it is nested different in host's page (for example, page A) The interface page (for example, page C) in domain will realize the display interface page is included in host's page content (that is, target is literary Part);In order to realize cross-domain height adaptive, the first page with host's page same area is embedded in interface page (that is, the page B).The size of file destination can be passed to page B by page C, then, by the script D.js in page B according to file destination Size and the corresponding display parameters of page A, it is aobvious under the display environment of client where page A that file destination is calculated Show height, and display height is passed through into page B and passes to page A.Finally, page A sets the iframe height comprising page C It is set to the display height (that is, actual height after page C insertion page A) of file destination, the final iframe high for realizing page A Degree is consistent with the actual height of page C always, improves the accuracy of the cross-domain height adaptive of iframe.
Fig. 6 is referred to, the block diagram of the cross-domain highly self-adapting apparatus of another iframe of the embodiment of the present application is shown.
In the present embodiment, after file service termination receives file read request, corresponding mesh is identified obtaining file destination While marking file content, also the display parameters of acquisition this document server-side and the file destination content are in the aobvious of file service end Show height, and passes to host's page (that is, client).
The basic row of the present embodiment embodiment shown in Fig. 5 further include: display height setup module 610.
Height setup module 610 is shown, for the display parameters when the display parameters and client for determining file service end When identical, file destination content is set in the display height at the file service end by the height of iframe in client.
File service end can share its display parameters, and client is after the display parameters for obtaining file service end, judgement Whether the display parameters of the two are identical.Display parameters, that is, display resolution ratio;If the display parameters of the two are identical, directly Display height by file destination content at file service end is set as the height of iframe in client.
For complete displaying target file, moreover, definition of the different browsers when parsing the page to these three height May not be identical, therefore, the display height of page C can take the body object of the file destination of html format Maximum value in scrollheight, offsetHeight and clientHeight.
The cross-domain highly self-adapting apparatus of iframe provided in this embodiment obtains file destination content at file service end Highly, if the display parameters at file service end are identical as the display parameters of client, in such cases, file destination is in the page The display height of C is identical as the display height in page A, therefore, directly can set page for the height of the iframe of page A The display height value of face C does not need page A according to the size of file destination and recalculates file destination in the display height of client Degree, adaptive process is simple, and can guarantee that the iframe height of page A is equal with the height of page C always.
Fig. 7 is referred to, the block diagram of the cross-domain highly self-adapting apparatus of the embodiment of the present application another kind iframe, the dress are shown It sets and is applied in file service end, and the file service end belongs to different domains, the insertion of file service end from the client First page, and first page is hidden at file service end, and interface page corresponding with file service end is embedded in client.
As shown in fig. 7, the device includes: that receiving module 710, first obtains the acquisition of module 720, second module 730, load Module 740 and the first transfer module 750.
Receiving module 710, for receiving the file read request of client transmission;This document read requests include the visitor The domain name and file destination at family end identify.
First obtains module 720, for obtaining file destination mark, and identifies acquisition file destination according to file destination and exists The storage address at the file service end.
Second obtains module 730, for obtaining the file destination and the file destination according to the storage address Size.
Loading module 740, for the file destination to be loaded into the interface page corresponding with the file service end In face.
The file destination of acquisition is included by file service end (that is, page C) by iframe label, is realized target File is loaded into page C.
In one embodiment of the application, file destination is stored in a manner of word at file service end, that is, file Format is doc or docx, and therefore, file service end needs that word formatted file is first converted into hypertext markup language (hyper Textmarkup language, html) format file, then the file destination of html format is loaded into page C.
As shown in figure 8, the loading module 740, comprising: the first acquisition submodule 741,742 and of format transform subblock Load submodule 743.
First acquisition submodule 741, for identifying the file destination for obtaining word format according to the file destination.
Format transform subblock 742, for the file destination of the word format to be converted to hypertext markup language lattice The file destination of formula.
Submodule 743 is loaded, for the file destination of the hypertext markup language format to be loaded into the interface page In face.
First transfer module 750, for transmitting the size of file destination to client by first page, so that client The height of the iframe of client is determined according to the display parameters of the size of file destination and client.
The size of file destination is assigned to the src attribute of the iframe comprising page B by page C, and page B is again by file destination Size pass to script D.js.Script D.js is according to the size of file destination and the current display parameters of page A (that is, page A The resolution ratio of place display), file destination is calculated in the display height of page A, and display height is passed into page Height thus is arranged in iframe height comprising page C by face A, page A.
The cross-domain highly self-adapting apparatus of iframe provided in this embodiment, nested not same area in host's page (page A) Interface page (page C) will realize the content (file destination) that the display interface page is included in host's page;In order to realize Cross-domain height adaptive is embedded in the first page (that is, page B) with host's page same area in interface page.Page C can be incited somebody to action The size of file destination passes to page B, then, by the script D.js in page B according to the size of file destination and A pairs of the page The display parameters answered are calculated display height of the file destination under the display environment of page A, and display height are passed through Page B passes to page A, finally, page A sets the iframe height comprising page C to the display height of file destination (that is, actual height after page C insertion page A), the final iframe height for realizing page A always with the practical height of page C Degree is consistent, improves the accuracy of the cross-domain height adaptive of iframe.
Fig. 9 is referred to, the block diagram of the cross-domain highly self-adapting apparatus of the embodiment of the present application another kind iframe, the dress are shown It sets and is applied to file service end, the device is on the basis of the embodiment shown in fig. 7 further include: the second transfer module 910;
Second transfer module 910, for by the display parameters at file service end and file destination at file service end Display height passes to the client by first page, so that client is in the display parameters and visitor for determining file service end When the display parameters at family end are identical, it is high in the display at file service end that file destination is set by the iframe height of client Degree.
In one embodiment of the application, script D.js can obtain file destination in the display height at file service end (that is, original height of page C), and page A is passed to by page B.And the display parameters at file service end can also be total to Enjoy and give page A, in this way, page A may determine that file service end display parameters and client display parameters it is whether identical, such as Fruit is identical, and the original height value of page C can be directly assigned to the height of the iframe of page A by page A, to make page A's Iframe height is identical as the height of page C.
Referring to Figure 10, the block diagram of the cross-domain highly self-adapting apparatus of another iframe of the embodiment of the present application is shown, it should Device includes on the basis of Fig. 7 (or Fig. 9) illustrated embodiment further include: vertical scroll bar display control module 1010;
Vertical scroll bar display control module 1010, in the DOM element for only showing the innermost layer comprising file destination Vertical scroll bar.
In one embodiment of the application, multiple vertical scroll bars may be shown by being further fully solved host's page When file destination is converted after html file the style sheet of default is added, by html file in problem in the html file of generation Each paragraph all use paragraph tag (that is,<P>label) to wrap up, and all paragraph tags are wrapped up with<div>box, The DOM element in the div of innermost layer is allowed to show vertical scroll bar, the vertical scroll bar of the DOM element of outer layer covers file destination It is not allowed to occur, i.e. setting overflow:hidden;Alternatively, scrolling=" no ", can guarantee vertical scrolling in this way The uniqueness of item is not in two or more vertical scroll bars.
Fig. 5 and the cross-domain highly self-adapting apparatus of iframe shown in fig. 6 include processor and memory, above-mentioned request transmitting Module, first obtain module, computing module and display height setup module etc. and are used as program unit storage in memory, by Processor executes above procedure unit stored in memory to realize corresponding function.
Fig. 7~cross-domain highly self-adapting apparatus of iframe shown in Fig. 10 includes processor and memory, above-mentioned reception mould Block, first obtain module, the second acquisition module, loading module, the first transfer module, the second transfer module, vertical scroll bar and show Show that control module, the first acquisition submodule, format transform subblock and load submodule etc. are stored in as program unit In reservoir, above procedure unit stored in memory is executed by processor to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, height adaptive is realized when the cross-domain acquisition content of pages of client by adjusting kernel parameter to realize
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor Existing Fig. 2~cross-domain height adaptive method of iframe shown in Fig. 3.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The cross-domain height adaptive method of iframe described in Shi Zhihang Fig. 2~Fig. 3.
The embodiment of the invention also provides another storage mediums, are stored thereon with program, which is executed by processor The cross-domain height adaptive method of iframe shown in Shi Shixian 4.
The embodiment of the invention also provides another processor, the processor is for running program, wherein described program The cross-domain height adaptive method of iframe described in Fig. 4 is executed when operation.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
File read request is transmitted to interface page, the file read request includes the domain name and target of the client File identification, the file read request are identified for obtaining the interface page from file service end with the file destination The size of corresponding file destination simultaneously passes to the first page;
The size of the file destination stored in the file service end is obtained by the first page;
According to the display parameters of the size of the file destination and the client, it is calculated in the client The height of iframe.
Optionally, the file read request is for making the interface page obtain the file destination from file service end Corresponding file destination content, the display parameters at the file service end and the file destination content is identified to take in the file The display height at business end;The method also includes:
When the display parameters for determining the file service end are identical as the display parameters of the client, by the client The height of iframe is set as the file destination content in the display height at the file service end in end.
Optionally, the method also includes:
The domain name character string of the client and the file destination identification strings are added to the file reading to ask In the header information asked;Alternatively,
The domain name character string of the client and the file destination identification strings are added to the file service end File server requests uniform resource position mark URL in parameter.
Optionally, height of the file destination content in the interface page includes the file destination content Maximum value in scrollheight, offsetHeight and clientHeight of body object.
The embodiment of the invention provides another equipment, equipment includes processor, memory and stores on a memory simultaneously The program that can be run on a processor, processor perform the steps of when executing program
The file read request that the client is sent is received, the file read request includes the domain name of the client And file destination mark;
The file destination mark is obtained, and the file destination is obtained according to file destination mark and is taken in the file The storage address at business end;
The size of the file destination and the file destination is obtained according to the storage address;
The file destination is loaded into the interface page corresponding with the file service end;
The size of the file destination is transmitted to the client by the first page so that the client according to The display parameters of the size of the file destination and the client determine the height of the iframe of the client.
Optionally, the method also includes:
Display height by the display parameters at the file service end and the file destination at the file service end is led to Cross the first page and pass to the client so that the client the display parameters that determine the file service end with When the display parameters of the client are identical, the file destination is set in the text by the iframe height of the client The display height of part server-side.
Optionally, described identified according to the file destination obtains file destination, and the file destination is loaded onto institute State the unified interface page, comprising:
The file destination for obtaining word format is identified according to the file destination;
The file destination of the word format is converted to the file destination of hypertext markup language format;
The file destination of the hypertext markup language format is loaded into the interface page.
Optionally, the method also includes:
The only vertical scroll bar in DOM element of the display comprising the innermost layer of the file destination.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
File read request is transmitted to interface page, the file read request includes the domain name and target of the client File identification, the file read request are identified for obtaining the interface page from file service end with the file destination The size of corresponding file destination simultaneously passes to the first page;
The size of the file destination stored in the file service end is obtained by the first page;
According to the display parameters of the size of the file destination and the client, it is calculated in the client The height of iframe.
Optionally, the file read request is for making the interface page obtain the file destination from file service end Corresponding file destination content, the display parameters at the file service end and the file destination content is identified to take in the file The display height at business end;The method also includes:
When the display parameters for determining the file service end are identical as the display parameters of the client, by the client The height of iframe is set as the file destination content in the display height at the file service end in end.
Optionally, the method also includes:
The domain name character string of the client and the file destination identification strings are added to the file reading to ask In the header information asked;Alternatively,
The domain name character string of the client and the file destination identification strings are added to the file service end File server requests uniform resource position mark URL in parameter.
Optionally, height of the file destination content in the interface page includes the file destination content Maximum value in scrollheight, offsetHeight and clientHeight of body object.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
The file read request that the client is sent is received, the file read request includes the domain name of the client And file destination mark;
The file destination mark is obtained, and the file destination is obtained according to file destination mark and is taken in the file The storage address at business end;
The size of the file destination and the file destination is obtained according to the storage address;
The file destination is loaded into the interface page corresponding with the file service end;
The size of the file destination is transmitted to the client by the first page so that the client according to The display parameters of the size of the file destination and the client determine the height of the iframe of the client.
Optionally, the method also includes:
Display height by the display parameters at the file service end and the file destination at the file service end is led to Cross the first page and pass to the client so that the client the display parameters that determine the file service end with When the display parameters of the client are identical, the file destination is set in the text by the iframe height of the client The display height of part server-side.
Optionally, described identified according to the file destination obtains file destination, and the file destination is loaded onto institute State the unified interface page, comprising:
The file destination for obtaining word format is identified according to the file destination;
The file destination of the word format is converted to the file destination of hypertext markup language format;
The file destination of the hypertext markup language format is loaded into the interface page.
Optionally, the method also includes:
The only vertical scroll bar in DOM element of the display comprising the innermost layer of the file destination.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (14)

1. a kind of cross-domain height adaptive method of iframe is applied in client, which is characterized in that the page of the client In include interface page, the interface page and the client are belonging respectively to different domains, include in the interface page with The first page of the client same area, which comprises
File read request is transmitted to the interface page, the file read request includes the domain name and target of the client File identification, the file read request are identified for obtaining the interface page from file service end with the file destination The size of corresponding file destination simultaneously passes to the first page;
The size of the file destination stored in the file service end is obtained by the first page;
According to the display parameters of the size of the file destination and the client, the iframe in the client is calculated Height.
2. the method according to claim 1, wherein the file read request for make the interface page from File service end obtains the file destination and identifies corresponding file destination content, the display parameters at the file service end and institute File destination content is stated in the display height at the file service end;The method also includes:
It, will be in the client when the display parameters for determining the file service end are identical as the display parameters of the client The height of iframe is set as the file destination content in the display height at the file service end.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The domain name character string of the client and the file destination identification strings are added to the file read request In header information;Alternatively,
The domain name character string of the client and the file destination identification strings are added to the text at the file service end Parameter in the uniform resource position mark URL of part service request.
4. the method according to claim 1, wherein height of the file destination content in the interface page Degree includes in scrollheight, offsetHeight and clientHeight of the body object of the file destination content Maximum value.
5. a kind of cross-domain height adaptive method of iframe is applied to file service end, and the file service end and the visitor Family end belongs to different domains, which is characterized in that the file service end is embedded in first page, and the first page is in the text Part server-side is hidden, and interface page corresponding with the file service end is embedded in the client, which comprises
The file read request that the client is sent is received, the file read request includes the domain name and mesh of the client Mark file identification;
The file destination mark is obtained, and the file destination is obtained at the file service end according to file destination mark Storage address;
The size of the file destination and the file destination is obtained according to the storage address;
The file destination is loaded into the interface page corresponding with the file service end;
The size of the file destination is transmitted to the client by the first page, so that the client is according to The display parameters of the size of file destination and the client determine the height of the iframe of the client.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Display height by the display parameters at the file service end and the file destination at the file service end passes through institute State first page and pass to the client so that the client the display parameters for determining the file service end with it is described When the display parameters of client are identical, the file destination is set by the iframe height of the client and is taken in the file The display height at business end.
7. according to the method described in claim 5, it is characterized in that, described identified according to the file destination obtains target text Part, and the file destination is loaded onto the unified interface page, comprising:
The file destination for obtaining word format is identified according to the file destination;
The file destination of the word format is converted to the file destination of hypertext markup language format;
The file destination of the hypertext markup language format is loaded into the interface page.
8. according to the method described in claim 5, it is characterized in that, the method also includes:
The only vertical scroll bar in DOM element of the display comprising the innermost layer of the file destination.
9. a kind of cross-domain highly self-adapting apparatus of iframe is applied in client, which is characterized in that the page of the client In include interface page, the interface page and the client are belonging respectively to different domains, include in the interface page with The first page of the client same area, described device include:
Transfer module is requested, for transmitting file read request to the interface page, the file read request includes described The domain name and file destination of client identify, and the file read request is for obtaining the interface page from file service end The size of corresponding file destination is identified with the file destination and passes to the first page;
First obtains module, for obtaining the file destination stored in the file service end by the first page Size;
Computing module, for the visitor to be calculated according to the size of the file destination and the display parameters of the client The height of iframe in the end of family.
10. a kind of cross-domain highly self-adapting apparatus of iframe is applied to file service end, and the file service end and the visitor Family end belongs to different domains, which is characterized in that the file service end is embedded in first page, and the first page is in the text Part server-side is hidden, and interface page corresponding with the file service end is embedded in the client, described device includes:
Receiving module, the file read request sent for receiving the client, the file read request include the visitor The domain name and file destination at family end identify;
First obtains module, obtains the target for obtaining the file destination mark, and according to file destination mark Storage address of the file at the file service end;
Second obtains module, for obtaining the size of the file destination and the file destination according to the storage address;
Loading module, for being loaded into the file destination in the interface page corresponding with the file service end;
First transfer module, for the size of the file destination to be transmitted to the client by the first page, so that The client determines the iframe of the client according to the size of the file destination and the display parameters of the client Height.
11. a kind of storage medium, is stored thereon with program, which is characterized in that realize right when described program is executed by processor It is required that 1 to 4 described in any item cross-domain height adaptive methods of iframe.
12. a kind of processor, the processor is for running program, which is characterized in that perform claim is wanted when described program is run Seek 1 to 4 described in any item cross-domain height adaptive methods of iframe.
13. a kind of storage medium, is stored thereon with program, which is characterized in that realize right when described program is executed by processor It is required that 5 to 8 described in any item cross-domain height adaptive methods of iframe.
14. a kind of processor, the processor is for running program, which is characterized in that perform claim is wanted when described program is run Seek 5 to 8 described in any item cross-domain height adaptive methods of iframe.
CN201710523794.3A 2017-06-30 2017-06-30 The cross-domain height adaptive method and device of iframe Pending CN109213946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710523794.3A CN109213946A (en) 2017-06-30 2017-06-30 The cross-domain height adaptive method and device of iframe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710523794.3A CN109213946A (en) 2017-06-30 2017-06-30 The cross-domain height adaptive method and device of iframe

Publications (1)

Publication Number Publication Date
CN109213946A true CN109213946A (en) 2019-01-15

Family

ID=64977070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710523794.3A Pending CN109213946A (en) 2017-06-30 2017-06-30 The cross-domain height adaptive method and device of iframe

Country Status (1)

Country Link
CN (1) CN109213946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362773A (en) * 2019-06-18 2019-10-22 中国平安人寿保险股份有限公司 Cross-domain communication method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299205A1 (en) * 2009-05-20 2010-11-25 David Erdmann Protected serving of electronic content
CN102184220A (en) * 2011-05-06 2011-09-14 中兴通讯股份有限公司 Cross-domain page display control method and device
CN104391909A (en) * 2014-11-17 2015-03-04 国云科技股份有限公司 Cross-domain IFRAME height self-adaption method
US20160117297A1 (en) * 2014-10-24 2016-04-28 POWr Inc. Systems and methods for dynamic, real time management of cross-domain web content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299205A1 (en) * 2009-05-20 2010-11-25 David Erdmann Protected serving of electronic content
CN102184220A (en) * 2011-05-06 2011-09-14 中兴通讯股份有限公司 Cross-domain page display control method and device
US20160117297A1 (en) * 2014-10-24 2016-04-28 POWr Inc. Systems and methods for dynamic, real time management of cross-domain web content
CN104391909A (en) * 2014-11-17 2015-03-04 国云科技股份有限公司 Cross-domain IFRAME height self-adaption method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SNANDY: "跨域iframe的高度自适应", 《博客园》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362773A (en) * 2019-06-18 2019-10-22 中国平安人寿保险股份有限公司 Cross-domain communication method, device, computer equipment and storage medium
CN110362773B (en) * 2019-06-18 2023-11-03 中国平安人寿保险股份有限公司 Cross-domain communication method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106484383B (en) Page rendering method, device and equipment
US11681699B2 (en) Automated extraction of data from web pages
US9753904B2 (en) Fast rendering of websites containing dynamic content and stale content
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
CN110069683B (en) Method and device for crawling data based on browser
US10447742B2 (en) Information sharing method and device
CN106294379A (en) The loading method of a kind of page, device and system
CN107229633A (en) Static page generation method, Web access method and device
CN106897251B (en) Rich text display method and device
US11170157B2 (en) Systems and methods for co-browsing
CN110442815B (en) Page generation method, system, device and computer readable storage medium
US8689099B1 (en) Cross-domain communication
JP6854046B2 (en) Data backfill method, terminal, and system
CN104798094B (en) Determine the configuration of content item display environment
CN104102577A (en) Test method of multi-version webpage visiting
CN111339456B (en) Preloading method and device
CN105183453B (en) Web-based information acquisition method and device
CN109213946A (en) The cross-domain height adaptive method and device of iframe
CN109639559A (en) A kind of wechat H5 propagates method for monitoring and analyzing and relevant device
CN107704464A (en) Parse the method and device in the path of static resource
CN115297042A (en) Method for detecting consistency of web pages under different networks and related equipment
CN105808727A (en) Website cross-screen adaptation technology architecture and adaptation method based on HTML5 (Hypertext Markup Language 5)
US20140250370A1 (en) Systems And Methods For Delivering Platform-Independent Web Content
CN107656935B (en) Webpage display method and device
CN106487851B (en) Web wrapper information transferring method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115