Auto iframe Height or an iframe to Fit it's Content
Introduction
Getting an iframe to fit it's content has been a on going problem. On numerous forums there are dead topics on how to get an iframe to fit it's content. So i decided to make an article on how to do this. The following will include: what is required, where to place the 'Auto iframe Height' script and finally how to configure it to suit you.
What is Required
You should have some understanding of html.
( if you have problems i am happy to help you in the forums )
The script and where to place the 'Auto iframe Height' script.
There are two parts to make an iframe fit it's content. They are as follows.
The following code is the script. It should be placed in the <head> tag.
The following code is the html code. It should be placed in the <body> tag, where appropriate
Any problems?
Trouble shooting:
1. Make sure "myframe" in "var iframeids=["myframe"]" is the same as the id on your iframe code.
2. Still having problems? - Post in the forum for help.
Thank you to..
I would like to recognize "Dynamic Drive DHTML code library" for this script, they have
done very well to put together this script. If you would like to browse their other scripts
goto:
"Dynamic Drive DHTML code library".
IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
Visit DynamicDrive.com for hundreds of original DHTML scripts
Comments
Warning: include(comment.php) [function.include]: failed to open stream: No such file or directory in /home/htmlsnet/public_html/web-articles/resize-iframe-height.html on line 144
Warning: include(comment.php) [function.include]: failed to open stream: No such file or directory in /home/htmlsnet/public_html/web-articles/resize-iframe-height.html on line 144
Warning: include() [function.include]: Failed opening 'comment.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/htmlsnet/public_html/web-articles/resize-iframe-height.html on line 144

