Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to store the information from a pop even after its closed

Status
Not open for further replies.

ankursaxena

Programmer
Sep 7, 2001
133
0
0
US
Hi, I have a table with some buttons. Once you click the button a window opens up and asks for information, upton closing it I want to pass this information back to the parent window for it to be stored until the user submits the information all at once. there are multiple buttons and hence different windows open up asking for different information and I can use these information interchangably in these popup windows as well until the user hits submit.

How can I go about doing this?

Thanks
Ankur
 
Using "window.opener", you can communicate with the window that opened each popup.

For example, if your main window has a form named "myForm" with a text field named "myText1", this would set its value:

Code:
window.opener.document.forms['myForm'].elements['myText1'].value = 'wibble';

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Thanks I will try this and I thnk this should work just fine for my problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top