Collin Dugas wrote:Hi All,
I have a requirement in which on click of a Assign button(Parent JSP containing a Text box and Assign button) a new child window(Child JSP) opens up displaying a list of values to select from. On selecting values and submitting the form the child window should close and the parent window be populated with the selected values.
I have been trying it for some time but could not do it. I would appreciate if anyone share any info if they have worked on this, any idea if this can be done or if the UI needs to be changed?
Thanks
There can be several ways using javascript/jsp:
You can refresh the parent window using javascript from the child(popup window)
This technique can work, if your child window sends that data to server, and parent window while refreshing can retrieve it from the server.
You can pass the selected values from child window to parent window using javascript:
Make sure your parent window has a javascript function called setValues(...)