Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to pass the values selected from dropdown list in the child window to the parent window


Message #1 by "Hi Servlet" <freeservlet@y...> on Thu, 11 Jul 2002 09:52:59
no probs in that ...
you can get a handle to the parent window from the child window by using
window.opener.
to set some variable in the parent page you can use
window.opener.forms(0).getElementById("the_id_of_variable").value.

Once you set that u can close your child window. Do let me know if you find
any difficulty in the same

-----Original Message-----
From: Hi Servlet [mailto:freeservlet@y...]
Sent: Thursday, July 11, 2002 3:23 PM
To: javascript
Subject: [javascript] How to pass the values selected from dropdown list
in the child window to the parent window


Hi, 

When i click "Open new window" button, the child window will pop up, From 
there, the user will choose an option from the dropdown list. This 
selected option will be returned to the parent and close the child window 
automatically.

Can anyone help me in this? 
Thanks

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

  Return to Index