Yet another IFRAME question

Yet another IFRAME question

Post by totalstran » Thu, 01 Mar 2007 01:55:49


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.yqcomputer.com/


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.
 
 
 

Yet another IFRAME question

Post by totalstran » Thu, 01 Mar 2007 02:00:46

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.yqcomputer.com/

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.