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] -

Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
Categories
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
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)