getting asp "parent" page to reload

They have: 12 posts

Joined: Mar 2002

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
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.

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

How are you opening the popup window? In Javascript? If you are using window.open to open the window, then in the popup window just use window.opener.location.href='whatever.asp' before you close it to refresh the parent.

PJ | Are we there yet?
pjboettcher.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.