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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh/Reload Problem

Status
Not open for further replies.
May 22, 2002
63
0
0
GB
Hi,

I use this code:

onClick=\"opener.parent.mainFrame.location.reload();window.close();\"

To close a window and refresh the parent window. However, becuuse the parent output is set by it first of all retrieving a $_GET variable from PHP I get a browser error stating that "The page cannot be refreshed without resending the information. Click Retry to resend the information or click cancel to return to the page that you were viewing."

Is there anyway to suppress this message and get the page to load without asking this question: effectively auto-clicking the Retry button?

Anders
 
I haven't worked with PHP, but what happens if you change:

Code:
opener.parent.mainFrame.location.reload();

to:

Code:
opener.parent.mainFrame.location=opener.parent.mainFrame.location.href;

--Dave
 
nothing happens now when i click the 'close and refresh' button?
 
Was it working the exact way you wanted to before when you hit the 'Retry' button? (other than that you had to hit the retry button)

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top