Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > resize iframe height from remote URL

Thread Tools

resize iframe height from remote URL
Posts: n/a
I'm pulling in content to a website from a remote website that is a
different domain. If the URL is on the same domain as my site, I can
use scripts like
<> to resize
the height. But because of javascript security reasons, I can't get
the height of the embedded content if it comes from a remote URL.

My goal is to provive content from one web site that can be embedded
into a second site, and exactly fit into a box on the receiving site.
The width is fixed, but the height will vary, depending on the content
and the local font size settings. I don't think this is going to be
possible with iframes (but please prove me worng!). Are there any
other ways I can accomplish this?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resize <IMG> width absolute and height relative ? Wladimir Borsov HTML 7 04-20-2012 08:44 AM
Possible to resize an Iframe to its content's height? Javascript 1 03-24-2006 08:06 PM
Div inside an iframe - how to set height relative to the iframe's visible size? Joe Attardi Javascript 0 01-17-2006 08:01 PM
How to resize all images sizes and coordinates of the images on resize browser ASP General 2 02-13-2005 09:03 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM