CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   Frame Refresh (http://www.codingforums.com/showthread.php?t=220190)

andriah 03-02-2011 07:19 AM

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

hdewantara 03-03-2011 03:56 PM

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>



All times are GMT +1. The time now is 10:10 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.