robert_gsfame Posted November 19, 2010 Share Posted November 19, 2010 Is it possible to refresh parent page before header() So let say i have 2 page, and 1st page is parent page and the other is pop up window Assume that there is an execution of certain script at the pop up window and it redirected to another page and redirected back again to that page As certain data being displayed in both pop up window and parent page..so i wish to have parent page being refreshed once pop up window execute header() is that possible?? Quote Link to comment https://forums.phpfreaks.com/topic/219200-refresh-page-before-header/ Share on other sites More sharing options...
BlueSkyIS Posted November 19, 2010 Share Posted November 19, 2010 if i understand the question: what i typically do is add javascript in the child window to refresh the parent window. after the popup redirects, i add javascript in the body tag of the pop-up html like this: <body onload='window.opener.location.reload();'> Quote Link to comment https://forums.phpfreaks.com/topic/219200-refresh-page-before-header/#findComment-1136711 Share on other sites More sharing options...
robert_gsfame Posted November 20, 2010 Author Share Posted November 20, 2010 but the problem is that one of the page is pure php script only. so no html tag at all Quote Link to comment https://forums.phpfreaks.com/topic/219200-refresh-page-before-header/#findComment-1137059 Share on other sites More sharing options...
trq Posted November 20, 2010 Share Posted November 20, 2010 but the problem is that one of the page is pure php script only. so no html tag at all You do understand the difference between client-side and server-side? How exactly do you expect php to refresh a window? Quote Link to comment https://forums.phpfreaks.com/topic/219200-refresh-page-before-header/#findComment-1137060 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.