Safari的iframe源问题


iframe source problem with Safari

我使用Safari浏览器有一个问题

当iframe的源代码发生变化时,不显示新的源代码,而是显示为下载文件。

下面是一个示例代码:

<?php echo "<iframe id='myframe' width='600' height='200' src='image3.php?id=$content'  style='margin-left:25; background-color:#ffffff'></iframe>";?>

和JS中的

function refreshConsole() {
var url = "image3.php?id=<?php echo $content; ?>";
document.getElementById("myframe").src=url;
setInterval("refreshConsole()", 15000);
}
$(document).ready(function() {
refreshConsole();
});

它可以在FireFox和Chrome中正常工作,但在Safari中不行。是代码问题还是浏览器问题

编辑:

这是image3文件

<?php
require("db.php");
db_connect();
$id=addslashes($_REQUEST['id']);
$image3=mysql_query("select * from image where id=$id");
$image2=mysql_fetch_array($image3);
$content2=$image2['image'];
header('Content-type: image/jpg');
echo $content2;
?>

直接在iframE中使用呢?

setTimeout(function(){
   document.location.reload();
}, 15000);