hotwire Posted December 15, 2008 Share Posted December 15, 2008 Hi, I have a need to want a page to refresh to a _parent window, it appears this is not possible.. Example: echo "<meta HTTP-EQUIV='REFRESH' content='1; url= xxxx.php' target='_parent'>" Notice the target='_parent' in the above code.. This does not work.. so I'm assuming this is not possible.. If there is a way to automatically open another page using targets, please let me know.. Thanks for any help on this.. Link to comment https://forums.phpfreaks.com/topic/136996-solved-using-targets-for-redirects-possible/ Share on other sites More sharing options...
mapleleaf Posted December 15, 2008 Share Posted December 15, 2008 is the parent always the page they come from? Link to comment https://forums.phpfreaks.com/topic/136996-solved-using-targets-for-redirects-possible/#findComment-715558 Share on other sites More sharing options...
hotwire Posted December 15, 2008 Author Share Posted December 15, 2008 Hi, yeah, I have a message box that when delete is selected I want the results to refresh the _parent window from an Iframe.. It appears that targets (target='_blank' , target='_parent', target='_self' etc) will not work with automatic redirects.. Link to comment https://forums.phpfreaks.com/topic/136996-solved-using-targets-for-redirects-possible/#findComment-715567 Share on other sites More sharing options...
mapleleaf Posted December 15, 2008 Share Posted December 15, 2008 target ="_top" Link to comment https://forums.phpfreaks.com/topic/136996-solved-using-targets-for-redirects-possible/#findComment-715572 Share on other sites More sharing options...
hotwire Posted December 15, 2008 Author Share Posted December 15, 2008 Hi Mapleleaf, Actually target='_top' would pretty much be the same as the other targets, in this case unrecognizable using auto redirects or refresh.. Fortunately, I did get a work-around through the PHP Builder forum, it consists of using the following as javascript: <script type="text/javascript">window.parent.location = 'xxx.php';</script> I appreciate the attempts of any help here.. Thanks.. Link to comment https://forums.phpfreaks.com/topic/136996-solved-using-targets-for-redirects-possible/#findComment-715804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.