paengski13 Posted April 7, 2011 Share Posted April 7, 2011 Hi! Just want to ask is it possible to refresh or call a parent window by another parent window? Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/ Share on other sites More sharing options...
Adam Posted April 7, 2011 Share Posted April 7, 2011 How can you have two parent windows? Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/#findComment-1198131 Share on other sites More sharing options...
paengski13 Posted April 7, 2011 Author Share Posted April 7, 2011 First parent is the List page. Second parent/New tab is the record I had selected in the First parent (List page). When I update the second parent, the List page should reload. Note: Using a child window is not an option based on the specs. Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/#findComment-1198132 Share on other sites More sharing options...
Adam Posted April 7, 2011 Share Posted April 7, 2011 So the first page opens the second - "parent" - window? That would automatically mean the second window is a child of the first. Do you mean you need to use the parent object? Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/#findComment-1198136 Share on other sites More sharing options...
paengski13 Posted April 8, 2011 Author Share Posted April 8, 2011 So the first page opens the second - "parent" - window? Yes, that's correct Do you mean you need to use the parent object? I want to reload the 1st parent (the one who called the 2nd parent) using the second parent. But the problem is, since they are both in the difference instance(new tab), Is it possible to reload the 1st parent window using 2nd parent window? Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/#findComment-1198515 Share on other sites More sharing options...
Adam Posted April 8, 2011 Share Posted April 8, 2011 Yeah I get you, your wording's just a little confusing. The second window would be a child of the first, and logically only considered a parent if it had little baby windows of it's own. Anyway, as I mentioned there's the parent object you can use to interact with the parent window. More specifically parent.opener in this case. So to reload the opener window: window.parent.opener.location.reload(); Quote Link to comment https://forums.phpfreaks.com/topic/232951-help-refresh-parent-window-by-another-parent-window/#findComment-1198616 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.