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 2 of 2

Thread: Frame Refresh

  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frame Refresh

    Hi all,

    I have a web application running with 4 frames. 3 frames on top with right mid and left and one frame at the bottom of these 3 frames. It looks somethin like this

    1 1 1
    --------
    1

    each of the top 3 frames contain form submission. And the bottom frame contains a php script that derives data from the MySQL database. So every time i submit the form in any of the 3 top frames it will be inserted into the SQL database which will be resulted at the bottom frame. So it's enough if that bottom frame just refreshes once the form in any of the top frames are submitted. Can someone help me out with this ??

    Thanks in advance
    Regards
    Andriah

  • #2
    Regular Coder hdewantara's Avatar
    Join Date
    Aug 2009
    Location
    Jakarta, Indonesia.
    Posts
    367
    Thanks
    9
    Thanked 53 Times in 52 Posts
    Does it really need javascript ?

    Say that within the top/ parent/ main window,
    you have named the bottom 4th frame as "status":
    Code:
    <!doctype html public "-//w3c//dtd html 4.01 frameset//en"
       "http://www.w3.org/tr/html4/frameset.dtd">
    <html>
    <head>
    </head>
    <frameset rows="50%, 50%">
      <frameset cols="30%, 30%, 40%">
        <frame src="form_1.php">
        <frame src="form_2.php">
        <frame src="form_3.php">
      </frameset>
      <frame name="status" src="status.html">
    </frameset>
    </html>
    and on each of those top frames' files define target="status":
    Code:
      <form method="get" action="form_x.php" target="status">
          your name: <input type="text" name="yname">
        <input type="submit">
      </form>


  •  

    Tags for this Thread

    Posting Permissions

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