RSS 2.0
# Friday, February 13, 2009

Many of us have faced the dilemna of auto-sizing an IFrame based on external web content.  Auto-sizing works just fine, if both the website and content are on the same domain.  But, if you are trying to auto-size content using cross-domain scripting, it is nearly impossible.

I too faced this problem, but using an example I found here: http://scvdotnet.org/index.php?url=archives/8-Autofitting-iFrame.html, I was able to make this work.  Please note, the example only works if you have access to both the website where the IFrame is hosted, and the website where the content is hosted.  I.e. this script will not work if you are trying to auto-size an IFrame for content you do not host or have access to.

Friday, February 13, 2009 5:16:17 PM (Mountain Standard Time, UTC-07:00)  #    Comments [0] -

Categories
Archive
<February 2009>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
GeekzRule.com
Sign In
Statistics
Total Posts: 12
This Year: 0
This Month: 0
This Week: 0
Comments: 0
Themes
Pick a theme:
All Content © 2010, GeekzRule.com
DasBlog theme 'Business' created by Christoph De Baene (delarou)