I've read all the previous threads and hope someone has the definitive answer. I have a window that has 2 vertical frames. If the user clicks the plus(+) sign in the right frame I execute a script that adds a row to a table and displays an 'Updated' message. When the user clicks the 'Return' button from the pop up, I want to go back to the first window and refresh the data to show that the item clicked in the right frame has been added to the table displayed in the left frame. Here is the code to go from the first script to do the update:
<td width="5" height="17" bgcolor="#CCE7FD">
<input type="button" value=" + " href="doEquipPart1.html?part=<? echo $line[Part]; ?>"
onclick="window.open(this.href, 'sub', 'width=350,height=120,scrollbars=no,resizable=no');" style="font-size: 8pt"></table>
Here is the return button code in the popped up window:
<td width="509" height="7" valign="baseline" align="left" bordercolor="#FFFFFF" bgcolor="#FFFFFF" rowspan="2">
<p align="center">The part has been added to the list!</p>
<p align="center">
<input type="button" value="Return" onClick="window.close()">
</td>
After the second script does the update I want the first screen to reflect on the update done in the second.
In RPG this would take me 2 minutes. I have to believe there is an intelligent way to do it in OO programming. I'm using HTML, PHP and JavaScript.
Thanks,
Scott
<td width="5" height="17" bgcolor="#CCE7FD">
<input type="button" value=" + " href="doEquipPart1.html?part=<? echo $line[Part]; ?>"
onclick="window.open(this.href, 'sub', 'width=350,height=120,scrollbars=no,resizable=no');" style="font-size: 8pt"></table>
Here is the return button code in the popped up window:
<td width="509" height="7" valign="baseline" align="left" bordercolor="#FFFFFF" bgcolor="#FFFFFF" rowspan="2">
<p align="center">The part has been added to the list!</p>
<p align="center">
<input type="button" value="Return" onClick="window.close()">
</td>
After the second script does the update I want the first screen to reflect on the update done in the second.
In RPG this would take me 2 minutes. I have to believe there is an intelligent way to do it in OO programming. I'm using HTML, PHP and JavaScript.
Thanks,
Scott