Connecting Tech Pros Worldwide Help | Site Map

forcing parent window to reload

  #1  
Old November 16th, 2006, 02:45 PM
Sonnich
Guest
 
Posts: 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

  #2  
Old November 16th, 2006, 04:15 PM
Sonnich
Guest
 
Posts: n/a

re: forcing parent window to reload


Sonnich wrote:
Quote:
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

  #3  
Old November 16th, 2006, 04:45 PM
Sonnich
Guest
 
Posts: n/a

re: forcing parent window to reload


Quote:
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

Closed Thread