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? Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment 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.