Re: [PHP] Reloading a specific window

2003-10-03 Thread Marek Kilimajer
1. you have the main window. 2. user clicks ADD, new windows pops up 3. user enters data into the new window, submits 4. action.php updates database and outputs: script language=javascript document.window.opener.reload() self.close(); /script noscriptClose

[PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have a main window which I will refer to as mainwindow (window.name='mainwindow' in the onload

Re: [PHP] Reloading a specific window

2003-10-02 Thread Marek Kilimajer
Output from action.php: script opener.location.reload(); close(); /script Rich Fox wrote: Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have

Re: [PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
This does not work, when I replace my header function with: elseif (isset($_POST['btnSave'])) { .. database update, then... $ostr = OUTPUT; script language=javascript document.window.opener.reload() self.parent.close(); /script OUTPUT;