Close child - refresh parent


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Close child - refresh parent

  1. #1
    Nate Guest

    Close child - refresh parent


    Once I log into the app via the login.asp I am redirected to main.asp. I pass
    two variables to main.asp, var1 and var2 in the URL so that the correct data
    is retrieved and the main.asp is built correctly.

    In main.asp a link will open a child window. Some data is processed in the
    child window. I then want to close the child and refresh the parent. However,
    when I refresh the parent I need to use the original values that were passed
    in the URL. I have access to them in the child asp but do not know how to
    pass them back to the parent so that it will refresh with the correct values.

    If I use JS window.opener.RefreshParent() the parent asp refreshes but the
    variables in the URL have disappeared.

    Can anyone help?

    TIA
    Nate

  2. #2
    Jon Ogden Guest

    Re: Close child - refresh parent

    Can you use Session variables? [Session("Var1"); Session("Var2") and
    Session("Child_Has_Run")]


    "Nate" <nkane@enak.com> wrote in message news:3a804562$1@news.devx.com...
    >
    > Once I log into the app via the login.asp I am redirected to main.asp. I

    pass
    > two variables to main.asp, var1 and var2 in the URL so that the correct

    data
    > is retrieved and the main.asp is built correctly.
    >
    > In main.asp a link will open a child window. Some data is processed in the
    > child window. I then want to close the child and refresh the parent.

    However,
    > when I refresh the parent I need to use the original values that were

    passed
    > in the URL. I have access to them in the child asp but do not know how to
    > pass them back to the parent so that it will refresh with the correct

    values.
    >
    > If I use JS window.opener.RefreshParent() the parent asp refreshes but the
    > variables in the URL have disappeared.
    >
    > Can anyone help?
    >
    > TIA
    > Nate




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center