Return data from window.open
Hello everybody,
On the click of a button, a javascript function runs and opens a browser window with window.open function with a textbox in the page. User writes something in the textbox and click "OK" and browser window closes. When browser window closes, I need to get the data typed by the user in the pop-up window.
Thanks.
Re: Return data from window.open
hi
assuming you have a textbox say t1 in form1 in main window. write the code in the close event of the popup window.
ex., in javascript.
window.opener.form1.t1.value = newvalue;
Re: Return data from window.open
Hi,
generally has to be done in by maintaining state using either the client or server sessionID, or query string variable. I assume that you are aware of how to do this so wont bore you with the code, but if you need it, shout and will write.
P.S. If you are doing this soley from the client, use the SessionID cookie, or both if it is an applications model and you want to cater for both Java enabled/disabled traffic. The cois is yours.
Ta for now.
Kai