Click to See Complete Forum and Search --> : Close child - refresh parent


Nate
02-06-2001, 01:41 PM
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

Jon Ogden
02-07-2001, 08:18 PM
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