karthikeyan_coder Posted March 13, 2007 Share Posted March 13, 2007 Let me to explain the structure.... filename : api.php Having an <iframe src="remotehost/index.php"> </iframe> i have to reload current page api.php after some execution of remotehost/index.php ... I've tried header(); but got formal header error. can we reload current browser url from an iframed code? Link to comment https://forums.phpfreaks.com/topic/42583-page-reload-with-an/ Share on other sites More sharing options...
boo_lolly Posted March 13, 2007 Share Posted March 13, 2007 <meta http-equiv="refresh" content="10" /> where 10 is the amount of seconds to delay before refreshing again. Link to comment https://forums.phpfreaks.com/topic/42583-page-reload-with-an/#findComment-206639 Share on other sites More sharing options...
karthikeyan_coder Posted March 13, 2007 Author Share Posted March 13, 2007 i am inside an iframe... i have to reload the main window with a different url... Link to comment https://forums.phpfreaks.com/topic/42583-page-reload-with-an/#findComment-206649 Share on other sites More sharing options...
karthikeyan_coder Posted March 13, 2007 Author Share Posted March 13, 2007 <SCRIPT LANGUAGE="JavaScript"> self.parent.location.href = "<?php echo($kurl); ?>"; </SCRIPT> this works for outside page reload from an iframe. Thanks Link to comment https://forums.phpfreaks.com/topic/42583-page-reload-with-an/#findComment-206663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.