Results 1 to 3 of 3

Thread: Return data from window.open

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    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.

  2. #2
    Addicted Member
    Join Date
    Jul 2004
    Location
    Mumbai
    Posts
    236

    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...

  3. #3
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    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
  •  



Click Here to Expand Forum to Full Width