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: document.window.opener.reload() self.close(); Close this window and reoad the main window to

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; document.window.opener.reload() self.parent.close(); OUTPUT; echo $ostr; //header("Locati

Re: [PHP] Reloading a specific window

2003-10-02 Thread Marek Kilimajer
Output from action.php: opener.location.reload(); close(); 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 a main window

[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