...

View Full Version : about parent.THE _FRAME_name



fcab
07-04-2003, 06:04 AM
Hi,
I wrote this script as a test. I am trying this with two frames using the “parent.frame_name_here” when the top frame is finish loading it start the test script in the bottom frame. I have tried this in NS 4.8, Mozilla , IE 6.0 and Opera 7.03 it worked fine. The test did not work in NS 6.2. The two frames are in https SSL mode.
The mane index page is not in SSL mode. Is there a way to get this test script to work in NS 6.2?


//This is the top frame
<body onload="start()">

<script >
function start()
{
setTimeout("parent.I2.testing()",1000)
}
</script>


//This is the bottom frame
<script>
function testing()
{
var x="this is a test!"
alert(x)
}
</script>

The URL of the test script
http://bigcpc.com/top :confused:

Kor
07-04-2003, 10:04 AM
I think you have to use either parent or frame_name_here, but not both. Make sure that your top frame is a real parent frame, than use parent.function().

sage45
07-04-2003, 08:31 PM
Actually, it has been my experience that the parent reference seems to be more designed towards a parent window or parent object that spawns a child object... By that recollection, frames, are not considered child objects by design...

Try using:

setTimeout("top.I2.testing()",1000)

-sage-

fcab
07-05-2003, 03:41 AM
Thanks sage45 but that did not work.

I think that it is just NS 6.2 and that the to frames are in https:// SSL mode. it works when the two frames are not in https:// SSL mode. go Go figure :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum