Use JQuery To Automatically Set IFrame Height
April 21st, 2010 | by admin |
It’s a fairly common problem when developing web applications and using IFrames (inline frames) – the height of an IFrame can’t easily be determined and it’s essentially dynamic as it depends on content and CSS inside the framed page.
A web designer or developer will need to know the height of a page loaded in an IFrame so that the scrollbars can be prevented from appearing.
Check out this great article - http://sonspring.com/journal/jquery-iframe-sizing by Nathan smith to find out how you can automatically adjust the height of IFramed pages so that your users should never need to scroll. Best of all – the solution is provided in JQuery and uses one simple line of code for including the JavaScript file.
Home
HYGEN Web Design
