my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Moving data from popup to parent 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 "Moving data from popup to parent" Watch "Moving data from popup to parent" New topic

Moving data from popup to parent

Nicolas Flammel
Ranch Hand

Joined: May 05, 2004
Posts: 32
I have a jsp page which contains a radio button that brings a text area when clicked along with a hyperlink. The hyperlink opens a pop up window when clicked. The pop up window populates few values in a table with checkboxes to select them. There is a button that must send the selected vales to the parent page into the textarea when clicked.

How can this be done? Please provide code.
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Nobody can provide you code like this

Try to write the code yourself and if you find any problem in that then you can post here. First of all i haven't understood what you are trying to say?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60740

As Ali said, this is not the place to come to have someone do your work for you. It is the place to come for help on writing your code.

Additionally, this needs to be done with client-side technology so I'm moving this along to the HTML/Javascript forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60740

Hint: your popup will have access to its opening page through a variable named opener.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
What helps me a lot for this kind of requirements: I open the popup and retain the handle. Then I set a variable of that window to the form I want to send the variables back. This way you have direct access to the underlying fields. Shortens your code quite a bit.
;-) stw
P.s.: Stick to DOM methods, then it will work X-Browser.
It is sorta covered in the JavaRanch Style Guide.
subject: Moving data from popup to parent
Similar Threads
Any other way for Customize confirmation alert Msg Box??(Mr. Al Ian)
Popup window jsp page
Reloading a parent window 1 after submit from window 2
Problem with pop-up
Enabling a button