close child, run ASP and display data in parent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe D

    close child, run ASP and display data in parent

    I think this is a simple question. But I am new to JS. Here is what I
    want to do:

    From a parent window, open a popup window (child) to get data from
    user, then user submit the request, close the child window, an ASP
    page is generated from server and displayed with data in parent
    window, rather than child window. Right now, I can display in child
    window. But do not know how to display in parent.

    TIA
  • N Clements

    #2
    Re: close child, run ASP and display data in parent

    One way to accomplish what you want is to capture the information you
    want in the child and submit it (via URL) to the parent window ASP file,
    then either close the child immediately or have the parent close it when
    the ASP file is finished loading. This is essentially submitting the
    form manually.

    If you want to still use the form submission itself, try setting the
    target="parent" -- I've not tried it, and I don't have access to anything
    that I can use to test it right now. You'll have to perform the close in
    the parent window (I believe).

    Hope this helps.

    N. Clements
    Brainbench MVP for Javascript

    nospam@spam.spa m.spam.242.mail shell.com
    Remove 2nd through 4th spam to reply.

    cdu10@hotmail.c om (Joe D) wrote in news:d775f0aa.0 306291314.2d38d 037
    @posting.google .com:
    [color=blue]
    > I think this is a simple question. But I am new to JS. Here is what I
    > want to do:
    >
    > From a parent window, open a popup window (child) to get data from
    > user, then user submit the request, close the child window, an ASP
    > page is generated from server and displayed with data in parent
    > window, rather than child window. Right now, I can display in child
    > window. But do not know how to display in parent.
    >
    > TIA
    >[/color]

    Comment

    Working...