473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reresh parent window from second window when middle window closed

2
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
2 2249
svbc
2
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
16,027 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

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

Similar topics

1
by: Robert Dickow | last post by:
I have a little bit of code in a popup window that attempts to detect when the parent window is closed or rather just jumped to another page url. the expression below is used in a popup created...
3
by: Kiki | last post by:
Hello, i wonder if anyone can help.. Is there a way of knowing from the parent window (var window;) that the child window (var newWindow) has been closed? i can't touch the child window's closed...
2
by: mannerfanner | last post by:
In order to reload the opener window from a child window I want to check the parent windows state. The following code works fine in IE and Mozilla: if(top.opener && !top.opener.closed) {...
1
by: Tomas Vera | last post by:
Hello All, I'm working on a web app that will simulate a Windows app. One of the items that I've trouble reproducing is the parent/child interaction that might occur between a windo and popup...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
by: Richard | last post by:
Greetings. I am total newbie to Javascript so what is written below is probably a bunch of cobblers!! Any assistance in correcting my code much appreciated. I wish the popped up child to pass...
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
2
by: ad08 | last post by:
Is this possible? I am trying to access function from grand parent window (the main window) in my child popup window but the parent window is closed in this case. a.jsp --> grand parent window...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.