Send Info From PopUp Window To Parent Window

Discussion in 'ASP .Net' started by chuckdfoster, Dec 6, 2005.

  1. chuckdfoster

    chuckdfoster Guest

    How do you send info from popup window to a parent? From the parent, the
    user click a link and a popup window appears with a calendar in it. I want
    them to click the date in the popup and populate a text box on the parent
    window. Any ideas?

    Thanks in advance.

    --
    Chuck Foster
    Programmer Analyst
    Eclipsys Corporation - St. Vincent Health System
     
    chuckdfoster, Dec 6, 2005
    #1
    1. Advertising

  2. Use window.opener to access the parent window.

    window.opener.document.getElementById("mytextbox").value = 'asdf';

    "chuckdfoster" wrote:

    > How do you send info from popup window to a parent? From the parent, the
    > user click a link and a popup window appears with a calendar in it. I want
    > them to click the date in the popup and populate a text box on the parent
    > window. Any ideas?
    >
    > Thanks in advance.
    >
    > --
    > Chuck Foster
    > Programmer Analyst
    > Eclipsys Corporation - St. Vincent Health System
    >
    >
    >
     
    =?Utf-8?B?SmVk?=, Dec 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenshin
    Replies:
    1
    Views:
    243
    Jeff Cochran
    Jun 25, 2004
  2. Jens Peter Hansen
    Replies:
    7
    Views:
    593
    Randy Webb
    Jun 19, 2004
  3. woody
    Replies:
    2
    Views:
    96
    woody
    Dec 9, 2004
  4. woody
    Replies:
    0
    Views:
    83
    woody
    Dec 9, 2004
  5. Erich93063
    Replies:
    2
    Views:
    353
    Erich93063
    Jan 3, 2007
Loading...

Share This Page