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 from the child Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Refresh parent from the child" Watch "Refresh parent from the child" New topic
Author

Refresh parent from the child

rajee Malar
Greenhorn

Joined: Nov 14, 2003
Posts: 9
Hi,
I am updating few data in the child window after making the chnages, i am submiting the child window and closing. I would like to refresh the home page to see the updated data on the parent. Could you help me on this.
I would appreciate greatly.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
basic idea from the child window

window.opener.location.href=window.opener.location.href;
self.close();
rajee Malar
Greenhorn

Joined: Nov 14, 2003
Posts: 9
Thanks Eric.
Fred Vaughn
Greenhorn

Joined: Mar 14, 2004
Posts: 5
Or — slightly shorter:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
reload has issues with some browsers that is why I did it the way I did,
Eric
Fred Vaughn
Greenhorn

Joined: Mar 14, 2004
Posts: 5
Not that I doubt your claim for a second, however, do you have anything in which could prove this? According to the documentation, the location.reload method has been supported since JavaScript 1.1 (i.e., Netscape 4.x), so I highly doubt there would be any support issues.
[ March 14, 2004: Message edited by: Fred Vaughn ]
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50677

so I highly doubt there would be any support issues.

Ahhhermmm... CSS postiioning has been around for a long time too and IE still has yet to get it right. Just because something's been around for a while doesn't mean it's supported correctly.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Fred Vaughn
Greenhorn

Joined: Mar 14, 2004
Posts: 5
Ahhhermmm... CSS postiioning has been around for a long time too and IE still has yet to get it right.
Actually, if you are referring to the CSS box model, IE6 supplied with a strict DOCTYPE gets it pretty much right. Though, in quirks mode it is completely messed up. By no means am I an IE fan — quite the contrary actually — however, it's just to make a point.
Just because something's been around for a while doesn't mean it's supported correctly.
I agree, but to an extent. Any browser in which supports JavaScript at the very least implements JavaScript 1.1. So it's safe to say that since this method has been introduced in JavaScript 1.1, any browser in which implements JavaScript will support this method.
 
 
subject: Refresh parent from the child
 
Threads others viewed
No javascript for child windows.
parent window notification
parent window notification
No javascript for child windows.
No javascript for child windows.
IntelliJ Java IDE