aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Refreshing parent window from popup... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Refreshing parent window from popup..." Watch "Refreshing parent window from popup..." New topic
Author

Refreshing parent window from popup...

Simon Haywood
Greenhorn

Joined: Sep 02, 2003
Posts: 6
Hi,
I'm having problems refreshing my parent window under the following situation...
Parent opens another window showing the status of file upload/validation process. If the validation fails another window is opened allowing data to be changed. When this window is closed the validation process is restarted and the status/validation window is reloaded. If the process is successful this time, on closing the window I wish the parent to be refreshed with the imported data. Currently I get the javascript error 'object' is undefined.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
when you refresh the pop up you loose the parent looses the child object.
The only solution to this problem is usining a zero height frame on the parnet window and opeing the pop up from there. You only refresh the hidden frame.
Simon Haywood
Greenhorn

Joined: Sep 02, 2003
Posts: 6
I'll give that a try.
Thanks.
Simon Haywood
Greenhorn

Joined: Sep 02, 2003
Posts: 6
Hi,
Maybe I'm having a bad day today, but still have problems with reloading parent page. Have tried implementing your suggested solution and still the the problem with lost child/parent. I may not have fully understood your solution, so could you please explain in more detail.

Thanks in advance
Simon
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I will try to get you some basic code this afternoon..I am under a tight deadline and do not have much time today.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing parent window from popup...