首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-01-19 
为什么用了iframe,ajax就失去了作用如题[解决办法] iframe id bbpEditor onblur WebEditor1_CopyEd

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

热点排行