Nandini Posted October 21, 2008 Share Posted October 21, 2008 I am doing on register form. the register form contain one iframe . I want to display user count from my mysql table. So i want to refresh that iframe. But the total page was refreshing. But i want to refresh iframe only. hjere is my code <IFrame Src="frame.php" Scrolling=No Frameborder=0 Marginheight=0 Marginwidth=0 Width=120 Height=140> frame.php <? include "../../includes/admin_functions.php"; $sql=mysql_query("select * from users"); echo mysql_num_rows($sql); ?> <meta http-equiv="refresh" content=3"> what is the problem here. Or is there any ajax script to refresh iframe only. Help me out Link to comment https://forums.phpfreaks.com/topic/129426-iframe-refresh/ Share on other sites More sharing options...
MadTechie Posted October 21, 2008 Share Posted October 21, 2008 Wrong Section looks like your missing a quote <meta http-equiv="refresh" content="3"> Link to comment https://forums.phpfreaks.com/topic/129426-iframe-refresh/#findComment-671063 Share on other sites More sharing options...
Nandini Posted October 22, 2008 Author Share Posted October 22, 2008 Thanx for ur reply. By using this also total page refreshing. But i want to refresh that iframe only. Link to comment https://forums.phpfreaks.com/topic/129426-iframe-refresh/#findComment-671463 Share on other sites More sharing options...
MadTechie Posted October 22, 2008 Share Posted October 22, 2008 i guess your have to move onto javascript then try this *untested* function automatic(delay) { document.frames["myframe"].location.href = "frame.php"; document.frames["myframe"].location.reload; setTimeout("automatic("+delay+")", delay); } //<IFrame name="myframe" Src="frame.php" Scrolling=No Frameborder=0 Marginheight=0 Marginwidth=0 Width=120 Height=140> Link to comment https://forums.phpfreaks.com/topic/129426-iframe-refresh/#findComment-672033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.