|
-
Jul 19th, 2005, 02:57 AM
#1
Thread Starter
Frenzied Member
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.
-
Jul 19th, 2005, 03:41 AM
#2
Addicted Member
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;
--Kishore...
-
Jul 23rd, 2005, 05:59 PM
#3
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|