Page 1 of 1

Refresh Main Screen

Posted: Wed May 24, 2006 4:00 am
by winsonlee
I have a page name index.php loaded on firefox.
After clicking on a link on page index.php, a new window name addname.php loaded.
addname.php contains a form with few field.
How can i make in such that after clicking add button on addname.php, the info automatically displayed on index.php without me clicking on the refresh button.

Posted: Wed May 24, 2006 4:05 am
by php3ch0
You could use some javascript

Code: Select all

<HTML><HEAD></HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function openChild(file,window) {
    childWindow=open(file,window,'resizable=no,width=200,height=400');
    if (childWindow.opener == null) childWindow.opener = self;
    }
//--></SCRIPT>

<BODY>
<FORM NAME="parentForm">
<INPUT TYPE="button" VALUE="Open child" onClick="openChild('examplejs2.html','win2')">
<BR><INPUT NAME="pf1" TYPE="TEXT" VALUE="">
<BR><INPUT NAME="pf2" TYPE="TEXT" VALUE="">
</FORM></BODY></HTML>