View Full Version : Frame Refresh

03-02-2011, 07:19 AM
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

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

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":

<!doctype html public "-//w3c//dtd html 4.01 frameset//en"
<frameset rows="50%, 50%">
<frameset cols="30%, 30%, 40%">
<frame src="form_1.php">
<frame src="form_2.php">
<frame src="form_3.php">
<frame name="status" src="status.html">

and on each of those top frames' files define target="status":

<form method="get" action="form_x.php" target="status">
your name: <input type="text" name="yname">
<input type="submit">