Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 getting asp "parent" page to reload
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Angela French
Starting Member

5 Posts

Posted - 02 April 2002 :  14:50:37  Show Profile
I have an asp page (casis.asp) where the user enters a client ID. If they don’t know the client ID they can use a link that will open up a popup window (findClient.asp) where they can enter in any part of a first or last name and will be returned a list of names and client Ids matching their search. These names are presented as a hypertext link which the user selects. After selecting the name of a client I need the pop-up window to close and the parent window to reload with the client ID now presented on the parent page (casis.asp).

The problem I’m having is to actually get the parent page to reload. Nothing happens.
I current have the target in findClient.asp set to target=_parent. If however, I set it to target=_blank a new page of casis.asp loads just like I want it to so I know all the functionality of the code works the way I want. However, I then have two browser windows open that display casis.asp. One is the old incomplete page, and the other is the new updated page.

I don’t want two browsers open. Anyone know how I can get that original parent window to reload? I’ve tried this meta tag <META http-equiv="expires" content="0"><META http-equiv="Pragma" content="No-Cache">
which I though might get the page to reload, but that did nothing.

I also tried target=_parent.reload, but that had the same effect as target=_blank which opened a second window.

Anybody have any ideas how to solve this one? I’m really stumped.


Aaron S.
Average Member

USA
985 Posts

Posted - 02 April 2002 :  15:02:37  Show Profile  Visit Aaron S.'s Homepage
Open the child window using javascript:

childwin= window.open("whatever.htm","childwin","width=x,height=y");

childwin.opener.name = "parentwin";

Now you can include target="parentwin" in your childwin.




Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 April 2002 :  15:14:50  Show Profile
I use this to get the main page to reload:

<script language="javascript1.2">self.opener.location.reload();</script>
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07