HTML: Any body got solution about resizing iframe?

Status
Not open for further replies.

montyauto

Banned
Jan 8, 2007
13
0
0
fastbuilder.eq19.com
Any body has solution to resizing iframe based on the size of its external content (different domain)?

I know there is a denied accessing to the external content. So far I found some way using cookies but need to fill some code inside the loaded content where as I am talking about loading any external links into the frame.

First you have to get the size of other website. I am not sure how you would do that.

Just hope any one has a got the solution.
 


If you're talking about dynamically resizing the IFrame try using DOM scripting with Javascript. The IFrame acts like a Frame and you should be able to resize it. As far as getting the size of the site, well the same-origin rule comes in to play and you won't be able to access the content from an outside source so there really isn't a sure fire way of getting the dimensions of a site so you can size the IFrame accordingly. As far as the IFrame object goes, width and height are available but I'm not sure if they're writable at all. I don't have time to test it out at the moment.
 
Status
Not open for further replies.