读书人

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

发布时间: 2012-01-19 20:57:58 作者: rapoo

为什么用了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

读书人网 >asp.net

热点推荐