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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass values between windows

Status
Not open for further replies.

rmittal

Programmer
Aug 8, 2000
8
US
Hello,
I have a first window which has 5-6 fields. It has 3 buttons - Other, Save, Cancel. When I click on Other, a new window opens(like a popup) which has 4 fields. It has 2 buttons - Ok and Cancel. When I click on Ok on this window I need to pass the values of the fields from this window to the previous window without refreshing the first window. i.e I have to pass values between the second window to the first window. The first window should not get refreshed since there are going to be few values entered on the first window. How do I do this?

 
a window can access its parent window like so:

self.opener.whatever();
self.opener.jive = something;

and a parent window can access it's child like so:

x=window.open()

now x is a reference to its child window:

x.whatever();
x.jive = something; jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top