Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please help with pop up window

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
GB
HI

I have a showModalDialog pop window which is an asp page I then submit the asp page to a page that also gets run in the same pop window which then closes its self.

But I want to refresh the the main page's frame where the popup was launched from.

How do I reference it??

Cheers
 

Page with popup link....
<head>

<script type=&quot;text/javascript&quot;>
<!--
function popup(url, name, height, width, scrollbars)
{
var popwin;
var opts =
&quot;toolbar=no,status=no,location=no,menubar=no,resizable=no&quot;;
opts += &quot;,height=&quot; + height + &quot;,width=&quot; + width +
&quot;,scrollbars=&quot; + scrollbars;

popwin = window.open(&quot;&quot;, name, opts);
popwin.focus();
popwin.location = url;

return false;
}
-->
</script>

</head>



<a href=&quot;pop_up.asp?redir=&quot; & Request.ServerVariables(&quot;SCRIPT_NAME&quot;)%>&quot; onClick=&quot;return popup(this.href, 'popupthing', 160, 400, 'yes');&quot;>

--------------------------

Popup page... (pop_up.asp)

<body onLoad=&quot;opener.location='<%=Request.QueryString(&quot;redir&quot;)%>';self.close()&quot;%>



- Jason www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top