日期:2014-05-18  浏览次数:20478 次

为什么用了iframe,ajax就失去了作用
如题

------解决方案--------------------
<iframe id= "bbpEditor " onblur= "WebEditor1_CopyEditContent(); " style= "HEIGHT: 360px " width= "100% "> </iframe>

--先赋到文本框里 escape 转换数据类型
<script>
function WebEditor1_CopyEditContent()
{
document.getElementById( 'WebEditor1 ').value = escape(document.frames( "bbpEditor ").document.body.innerHTML);
}
</script>

ajax 里 提交就OK