|
|
Cross-Frame Scripting, IFRAME and https (access denied)
I'm trying to dynamically set the height of my Iframe. my https: main page
is calling another https in an Iframe. But i get an access denied error
from my javascript trying to call the parent document.
Main https page
<IFRAME APPLICATION="yes" style="width:100%;" id="iframename"
frameborder="no" scrolling="no" SRC="https://www.otherdomain.com">
otherdomain.com html
------------------------------------------------
<script>
function bodyheight() {
x = document.body.scrollHeight
parent.document.all.iframename.style.height = x
}
</script>
|
|
0
|
|
|
|
Reply
|
dangreece (2)
|
5/7/2004 5:49:28 PM |
|
Cindy Lee wrote:
> I'm trying to dynamically set the height of my Iframe. my https: main page
> is calling another https in an Iframe. But i get an access denied error
> from my javascript trying to call the parent document.
>
> Main https page
> <IFRAME APPLICATION="yes" style="width:100%;" id="iframename"
> frameborder="no" scrolling="no" SRC="https://www.otherdomain.com">
And there, in your SRC attribute, is the source of your problems. You
are trying to script one domain from another and that is a *very*
serious breach of security. It doesn't matter that they both belong to
you, the browser doesn't care. They aren't the same domain.
> otherdomain.com html
> ------------------------------------------------
> <script>
> function bodyheight() {
> x = document.body.scrollHeight
> parent.document.all.iframename.style.height = x
Further, that line will only work in IE and a very small list of other
browsers since its the only ones that support document.all
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
|
|
0
|
|
|
|
Reply
|
Randy
|
5/7/2004 6:18:42 PM
|
|
|
1 Replies
856 Views
(page loaded in 0.336 seconds)
Similiar Articles: Cross-Frame Scripting, IFRAME and https (access denied) - comp ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ... Access and Outlook. Stop prompt for Profile name? - comp.databases ... Accessing Public Folders of ... cross domain permission denied problem - comp.lang.javascript ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ... Debugging rsh,rcp,rlogin and rdist Permission Denied Problems How ... Scripting, IFRAME And Https ... Forbidden Access to Frame - comp.lang.javascriptCross-Frame Scripting, IFRAME and https (access denied) - comp ... Forbidden Access to Frame - comp.lang.javascript When I try to run a javascript from Frame 1 to access ... Set style of IFRAME contents via javascript... - comp.lang ...Set style of IFRAME contents via javascript... - comp.lang ... Cross-Frame Scripting, IFRAME and https (access denied) - comp ... I'm trying to dynamically set the height ... Using a variable in the src attribute of iframe - comp.lang ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ... my https: main page is calling another https in an Iframe. But i get an access ... no" scrolling="no ... Access and Outlook. Stop prompt for Profile name? - comp.databases ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ... Access and Outlook. Stop prompt for Profile name? - comp.databases ... Accessing Public Folders of ... how to enable passwordless access for rsh rcp - comp.unix.solaris ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ... how to enable passwordless access for rsh rcp - comp.unix.solaris ... Debugging rsh,rcp,rlogin and rdist ... Tell IE8 not to stop long script ? - comp.lang.javascript ...Access and Outlook. Stop prompt for Profile name? - comp.databases ... Tell IE8 not to stop long script ? - comp.lang.javascript ... Access and Outlook. document.body.style.fontsize is not working - comp.lang.javascript ...Cross-Frame Scripting, IFRAME and https (access denied) - comp ..... script> > function bodyheight() { > x = document.body.scrollHeight > parent.document.all.iframename ... Cross-Frame Scripting, IFRAME And Https (access Denied)Permission Denied - Allow Cross Domain Scripting Between Trusted Domains? We have a .net based application hosted with SAP enterprise portal iframes. Cross-Frame Scripting, IFRAME and https (access denied ...Cross-Frame Scripting, IFRAME and https (access denied). JavaScript / Ajax / DHTML Forums on Bytes. 7/23/2012 9:19:11 PM
|
|
|
|
|
|
|
|
|