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 refresh parent window from child window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "refresh parent window from child window" Watch "refresh parent window from child window" New topic
Author

refresh parent window from child window

Winston Smith
Ranch Hand

Joined: Jun 06, 2003
Posts: 136
Hello All,
I have a situation I'd like to get some input on. I'm opening a new window (child window B) from parent window A. Now child window B is going to get some user input and once the user finishes, I'd like to update window A (refresh the page). Can anyone advise on this? How can a child window communicate with its parent window? Is there a similar naming scheme as in frames?
Thanks everyone!


for (int i = today; i < endOfTime; i++) { code(); }
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
window.opener.reload();
You are going to loose the relationship between the parent and the child.
Eric
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
From the child window pass the varible to parent window
with target main window and the form action of the child window should be parent window. After that refresh the parent window.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: refresh parent window from child window