![]() Might require changes to browser security settings or modification of trusted sites list. ![]() We get a scrollbar on the outer most right side (browser window) when the page is long. ![]() In order to allow cross frame scripting you may need to set the document.domain property on both pages. jQuery can be used for both solutions.Īlternative 1) Resize iFrame from within inner frameĭescription: With javascript on both the outer page (the one hosting the iFrame) and inner page, iFrame is resized after the inner page has checked its own height and sends this value to its parent. Examples of the two alternatives, I am sure you can find your self. I will explain them shortly and present a list of pros and cons. So how do you go about solving this problem? There is tons of sample code that shows what you can do but you will find few articles summing up pros and cons of alternative solutions.īasically there are two solutions. If you are a web developer you have probably encountered iFrame resizing requirements.īecause of legacy code, your portal framework or some other reason you have to use an iFrame and because of the fancy layout from the designer you are required to introduce an iFrame that fills some section of the page that adjusts itself depending on the content that goes into the iFrame, and of course you do not want extra scroll bars appearing on this iFrame and you do not want a vertical scrollbars except from on the outer right side window edge when the page is long.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |