Connecting Tech Pros Worldwide Help | Site Map

forcing parent window to reload

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 16th, 2006, 01:45 PM
Sonnich
Guest
 
Posts: n/a
Default forcing parent window to reload

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, 03:15 PM
Sonnich
Guest
 
Posts: n/a
Default 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, 03:45 PM
Sonnich
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.