Yet another IFRAME question

T

totalstranger

Has anyone found a reasonable, simple way to determine the height of
variable length embedded data in a cross-domain IFRAME?

I'm not interested in reading or viewing the data in the IFRAME, I
simply want to make sure it's displayed without a scrollbar. To date all
my efforts have been rejected with a security violation, although I can
set the proper IFRAME height when it's on the same domain. Therefore,
I've been forced to place the IFRAME last and make its length longer
than anything that I feel may be reasonable to avoid a scroll bar.

Due to the need for keeping the IFRAME must be kept with its proper
because of an embedded submit, I've considered using a PHP script to
load the data as a Javascript function, execute the function with an
Ifram onload, set it into a hidden DIV as innerHTML, get the height of
the DIV, then apply the DIV height to the IFRAME. This link describes
the technique of setting up a (currently) legal method of doing this and
gave me the idea.
http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html?page=last


It just seems so way over the top just to set the height of a
cross-domain IFRAME.

Thank you

Arn

PS for those of you concerned over permissions, that's not an issue. I
own the data in the IFRAME and am providing it as a service to the other
domains.
 
T

totalstranger

Sorry for the garbled text on the first post.

Has anyone found a reasonable, simple way to determine the height of
variable length embedded data in a cross-domain IFRAME?

I'm not interested in reading or viewing the data in the IFRAME, I
simply want to make sure it's displayed without a scrollbar. To date all
my efforts have been rejected with a security violation, although I can
set the proper IFRAME height when it's on the same domain. Therefore,
I've been forced to place the IFRAME last and make its length longer
than anything that I feel may be reasonable to avoid a scroll bar.

Due to an embedded submit, the IFRAME must be kept with its proper
domain. I've considered using a PHP script to load the data as a
Javascript function, execute the function with an Iframe onload, set it
into a hidden DIV as innerHTML, get the height of the DIV, then apply
the DIV height to the IFRAME. This link describes the technique of
setting up a (currently) legal method of doing this and gave me the
idea.
http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html?page=last

It just seems so way over the top just to set the height of a
cross-domain IFRAME.

Thank you

Arn

PS for those of you concerned over permissions, that's not an issue. I
own the data in the IFRAME and am providing it as a service to the other
domains.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top