![]() ![]() The links in the parent control the page that gets loaded in the iframe. This is normally on the html or body elements, but it could be on any element in the page.I’ve got a parent page and an iframe inside that page. The most likely cause of this problem is having set the height of an element to be 100% of the page somewhere in your CSS. In such cases you can change the heightCalculationMethod to uses one of the other sizing methods. If a larger element of content is removed from the normal document flow, through the use of absolute positioning, it can prevent the browser working out the correct size of the page. Please read the contributing guidelines before openning a ticket, as this will ensure a faster resolution. If you need futher help, then please ask questions on StackOverflow with the iframe-resizer tag.īug reports and pull requests are welcome on the issue tracker. Solutions for the most common problems are outlined in this section. This will enable you to see what both the iFrame and host page are up to and also see any JavaScript error messages. The first steps to investigate a problem is to make sure you are using the latest version and then enable the log option, which outputs everything that happens to the JavaScript Console. The targetOrigin option is used to restrict where the message is sent to, in case your iFrame navigates away to another domain. Send data to the containing page, message can be any data type that can be serialized into JSON. This has the following methods available. Once the iFrame has been initialized, an iFrameResizer object is bound to it. indexOf ( " MSIE " ) != - 1 ) // Detect IE10 and below iFrameResize ( Your callback function will be recalled when the parent page is scrolled or. If the default option doesn’t work then the best solutions is to either to use taggedElement, or to use lowestElement in modern browsers and max in IE10 downwards. The first () is for the page hosting the iFrames.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |