wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Add items in Drop Down List from a child window to parent window. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Add items in Drop Down List from a child window to parent window." Watch "Add items in Drop Down List from a child window to parent window." New topic
Author

Add items in Drop Down List from a child window to parent window.

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi All,
In my jsp page i have a hyper link, a text box and an empty drop down list.
On clicking hyper link a child window is open in which i can select some value
and this values pass to the parent window text box and the child window closes.
Now i want to do the same thing with my drop down list. I mean select some value from the child window and then show this in the drop down list. But i m not finding any solution.
If any body has any idea help me.
Thanks in advance.


Khushwinder
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Write a javascript method in the parent window:

In your popup window, before you do window close, pass the values to the parent's script method:

That should do it, I s'pose.
[ January 04, 2008: Message edited by: Anirvan Majumdar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add items in Drop Down List from a child window to parent window.
 
Similar Threads
Passing values from child to parent window
using replaceAll() function with jstl
child-parent values passing
Hi All
Window.Opener Problem