File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Refreshing Parent Window from Child Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Refreshing Parent Window from Child" Watch "Refreshing Parent Window from Child" New topic
Author

Refreshing Parent Window from Child

Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
I want to refresh child window without closing child window when form is submitted in child window...I tried the following but it closes child window and control goes on parent window..
if(!window.opener.location)
window.opener.location = self;
window.opener.location.reload();
[ August 13, 2005: Message edited by: Bear Bibeault ]

SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You refreshing from the parent or the pop up window?

Eric
Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
refreshing parent from the pop up (child ) window
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
refreshing the parent is just:

window.opener.window.location.reload();

But refreshing the parent from the child is going to sever the parent/child relationship.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing Parent Window from Child
 
Similar Threads
Addressbar hiding
passing the selected value back to calling page
parent window notification
parent window notification
reload Window