• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing parent window from popup...

 
Simon Haywood
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll give that a try.
Thanks.
 
Simon Haywood
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will try to get you some basic code this afternoon..I am under a tight deadline and do not have much time today.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic