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