[thelist] Calling javascript function in window.parent

Roger Ly rogerly at bareviking.com
Fri Jan 17 12:48:01 CST 2003

[ Picked text/plain from multipart/alternative ]
I assume that it is a security violation, but to make sure:

Is it possible for me to call a javascript function defined in a frame's
parent, if the frame and the parent are located on the same domain, but
one is through https, and the other through http?

I get a "Permission denied" error, and I wanted to verify that it was,
in fact, due to the frame being served securely while its parent is not.
If that is the case, is there any way to work around the issue?

Example parent code: (frame.html)
<script type="text/javascript>
            function blah() { alert ("called blah(); }
            <frame src=https://www.mydomain.com/page.html>

Example frame code: (page.html)
<a href="page.html" onclick="if (parent.blah) parent.blah(); return
false;">click me</a>

Sorry I don't have a server that allows me to view files through https,
so I can't provide a link.



More information about the thelist mailing list