Popup Window Problems & Refresh

From: Date: Wed, 31 Oct 2001 11:15:51 +0000
Subject: Popup Window Problems & Refresh
Groups: php.general 
Request: Send a blank email to php-general+get-73000@lists.php.net to get a copy of this message
All, I am opening a popup window using the following code: <a href="" onClick="window.open('/gallery/upload_form.php3', 'triviaWnd', 'height=360,width=620,status=1,resizable=1,top=200,left=120'); return false; "><img src="gallery/images/bt_upload.gif" width="60" height="17" border="0" alt="Use upload to copy your own images to the web site"></a> My popup window then runs some PHP code and finally displays a status message with a close window button. When the close window button is clicked I need to close the popup window and refresh the parent window or alternatively (preferably) just recalling the PHP script. Here is the HTML for my popup window: <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <meta name="generator" content="Adobe GoLive 5"> <title></title> <link rel="stylesheet" href="../master.css"> </head> <tr><br><td>The file [<b>08lg.jpg</b>]<B>Has been Successfully uploaded to the SouthLondonKidz Website</td><body bgcolor="#ffffff" leftmargin="50" marginwidth="0" topmargin="0" marginheight="0" background="c:/program files/apache group/apache/kidz/images/bgs/bg_grid.gif"> <FORM METHOD="POST" ACTION = "../gallery01.php3" ><PRE><INPUT TYPE="submit" ALIGN=LEFT VALUE="Close Window" onClick="window.close()"></PRE></FORM></HTML> The action for the form is only fired if the onClick="window.close() is removed. My question is how can I close the window and refresh or reload the specified window. TIA, Roger

« previous php.general (#73000) next »