Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    "parent.FRAME_name" not working in NS 6.2

    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
    Last edited by fcab; 07-04-2003 at 07:28 AM.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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().
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,064
    Thanks
    0
    Thanked 15 Times in 15 Posts
    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-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #4
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Netscape Thanks for the help sage45 think is just NS 6.2 did now work :confused:

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •