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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    528
    Thanks
    8
    Thanked 8 Times in 8 Posts

    Reloading a frame

    At the moment I am reloading a page like such:

    <body onLoad="parent.frames[2].location='<? echo "middle.php?logged_uid=1&password=$password&url=$url"; ?>';">


    But I am wondering, is there a way to continue loading the page say every 5 seconds but from a different frame.

    EG. I want frame one to have the source in it, to reload frame two every 5 seconds.

    Any help appreciated.

    Taylor.

  • #2
    Regular Coder
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    528
    Thanks
    8
    Thanked 8 Times in 8 Posts
    Anyone at all? LOL

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    function doReload(){
    parent.frames[2].location.replace('<? echo "middle.php?logged_uid=1&password=$password&url=$url"; ?>');
    }
    ...
    <body onload="setInterval('doReload()', 5000)">

    But why do you pass the password to the url? That's not good.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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