Connecting Tech Pros Worldwide Forums | Help | Site Map

Refreshing page after closing popup?

VMI
Guest
 
Posts: n/a
#1: May 25 '06
My aspx (source.aspx) has a hyperlink that opens a popup page:
HyperLink_anadirNota.NavigateUrl = "javascript:CreateWnd('followup.aspx?id="
+txtNum + "',850,410,true)";

Now I want source.aspx to refresh automatically after I close followup.aspx.
How can I do this?

Thanks.


Jimi200478
Guest
 
Posts: n/a
#2: May 25 '06

re: Refreshing page after closing popup?


create a function in javascript to close followup.aspx. insert the
following code into the close function:

function closeme()
{
self.close();
parent.opener.location.href = parent.opener.location.href;
}

that should work.

Jimi200478
Guest
 
Posts: n/a
#3: May 25 '06

re: Refreshing page after closing popup?


scratch that actually. use this instead:

function closeme()
{
self.close();
parent.opener.document.forms[0].submit();
}

this way it will register as a post back on source.aspx

Closed Thread