By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,144 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,144 IT Pros & Developers. It's quick & easy.

forcing parent window to reload

P: n/a
Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>

BR
Sonnich

Nov 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sonnich wrote:
Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>
I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();

BR
Sonnich

Nov 16 '06 #2

P: n/a
I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();
..... and :-) I found that it works in one case, but another windows
days, that for freshing it needs to repost something... it is not
always there, but some times... anyone know why?

It does not happen when I change some checkboxes when working, but as
far as I get it at random...

BR
Sonnich

Nov 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.