Jump to content

iframe refresh


Nandini

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.