How to pass the data from a pop up window to the parent window

Hi All,

I have a jsp page which contains a add button, while clicking it a popup will come out(which is a another jsp page). There are some input fieldsand a submit button. Now how could I send the data from the pop up to the parent winow. Also I have to check that if the pop up is open and I click add button then another pop up must not open.

Plz reply its urgent

Thanks and Regards

Rajib Sharma

[429 byte] By [rajib2K5a] at [2007-10-2 13:07:41]
# 1
passing from pop up window to parentopener.document.parentWindowForm.element.value=document.popupWindowForm.element.value
jgalacambraa at 2007-7-13 10:32:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for the reply

But it not worked

I have a jsp page and the popup is also a jsp page the data that is passed from the popup window to the parent must be send to the server from the parent window to get a data from the data base as search result. Its of no use to get it as js data

Thanks and regards

Rajib Sharma

rajib2K5a at 2007-7-13 10:32:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
so you mean you have to reload the parent window and pass the parameters by just pressing a button?
jgalacambraa at 2007-7-13 10:32:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Yes a kind of that Ho to reload that parent window after I submit the popup window
rajib2K5a at 2007-7-13 10:32:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...