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