467,075 Members | 1,067 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

Reresh parent window from second window when middle window closed

Hi, I am facing a problem with refreshing parent:

Parent window : A
From A I am opening a child window B using
Expand|Select|Wrap|Line Numbers
  1. window.open("","EVENT_DETAILS_WINDOW","height=310,width=480,top=150,left=200,status=yes,resizable=yes,scrollbars=yes");
  2. form.target="EVENT_DETAILS_WINDOW";
  3. form.action= "event.jsp"
  4. form.submit();
  5.  
From B I am opening a another window C and closing window B the code..
Expand|Select|Wrap|Line Numbers
  1. window.open("editEvent.jsp","EVENT_EDIT_WINDOW","height=500,width=515,top=150,left=200,status=yes,resizable=yes,scrollbars=yes");
  2. form.target="EVENT_EDIT_WINDOW";
  3. form.action= "event?action=edit"
  4. form.submit();
  5. self.close();
  6.  
The problem is I am unable to reload parent window from window C with :

window.opener.location.reload();
self.close()

OR

window.opener.opener.location.reload();
self.close().

Please help me on how to refresh the parent from child C when middle child closes
Jan 2 '08 #1
  • viewed: 1978
Share:
2 Replies
Hi All,

I solved this problem by placing

window.opener.open() in window B.

so the parent window is refreshed now
Jan 2 '08 #2
acoder
Expert Mod 8TB
I solved this problem by placing

window.opener.open() in window B.

so the parent window is refreshed now
What this does is make A the parent of C (and not the 'grandparent') because window.open is called from the parent A, not B.
Jan 2 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Tomas Vera | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.