DIVがクリックされたときに、zend-framework、iframe、ajax、およびjqueryを使用してURLを呼び出しています。AjaxとJqueryを使用してiframeのターゲットを設定していますか?
私は.....私はDIV
<div target="listenMsg" class="text" id="<?php echo $row['id']; ?>">
......
</div>
次のコードを使用し、jQueryのために、私は次のコードを記述従う
<iframe src="http://localhost.test.com/public/index/listen-message" name="listenMsg" height="120" width="600">
<p>Your browser does not support iframes.</p>
</iframe>
として
$(".text").click(function()
{
var clickedDiv = $(this).attr("id");
var id=$(this).attr("id");
$.ajax({
type: "POST",
url: "http://localhost.test.com/public/index/listen-message",
data: id,
success: function(data){
}
});
return false;
});
をインラインフレームを使用していますしかし、私がDIV "テキスト"コントロールをクリックすると、http://localhost.test.com/public/index/listen-messageに行きますが、結果はIFRAME ....に表示されません。
何が起こりうるのでしょうか?
私はあなたのiframeに返される結果を追加する必要があると仮定し...... ......