divにajax応答をロードしていますが、中間のiframeにロードしたいのですが、次のことを試しましたが、機能しません。私が間違っていることを教えてもらえますか?ありがとう
<script type="text/javascript">// <![CDATA[
$(document).ready(function() {
$.ajaxSetup({ cache: false });
setInterval(function() {
//$('#divToRefresh').load('./doit.php');
$("#iframe").attr('blank.php','./doit.php'); //change url
}, 20000);
});
// ]]></script>
<iframe name="top" src="blank.php" id="top" scrolling="no" noresize frameborder="0" marginwidth="0" marginheight="0" width="100%" height="79"></iframe>
<iframe NAME="middle" src="blank.php" id="middle" noresize frameborder="0" marginwidth="0" marginheight="0" width="100%" height="238" scrolling="auto"></iframe>
<iframe NAME="foot" src="blank.php" id="foot" scrolling="no" noresize frameborder="0" marginwidth="0" marginheight="0" width="100%" height="200"></iframe>
<div id="divToRefresh">Loading ...</div>