当前位置: 代码迷 >> ASP.NET >> 为什么用了iframe,ajax就失去了作用解决思路
  详细解决方案

为什么用了iframe,ajax就失去了作用解决思路

热度:9788   发布时间:2013-02-25 00:00:00.0
为什么用了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
  相关解决方案