I'm trying to pass the contents of a selection box from a pop-up window to a selection box in it's parent window, but I can't figure it out.
I know that this works:
<input type="text" name="child" size=45>
<input type="button" name="cmdsend" value="Send" onclick="sendToParent()">
<input type="text" Name="parent" size=45>
SO what this does it whatever you type into the text field in child window and hit 'send', then that value will show up in the text field parent in the parent window.
What I was thinking was to use this logic with a selection box. In my child window, I add a new field into the database and update the table. The selection box displays all the current fields of that table. So I want to be able to send this newly updated info back to the parent window's selection box.
Is this possible? (Please say yes!)
I'm trying to do it this way instead of reloading the parent page, because if I reload the parent page, information that the user might have entered in input fields will disappear on the refresh, because that info isn't saved yet.
If there's another way to do this (Ie sending the updated information back to the parent window) I'm open for suggestions..