//var data = document.frames["HtmlEditoriframe"].getHTML(); 只支持ie
//var data = document.getElementById("HtmlEditoriframe").contentWindow.document.getElementById("editor_body_textarea").value;
var data = parent.frames["HtmlEditoriframe"].getHTML();// 支持ie和火狐
在文件getdata.asp第61行中,以下脚本在IE中是没有任何问题,可以成功执行,可是在火狐firefox运行错误,无法执行!
<script>parent.document.simageframe.document.location.href='upload/upfile.asp?saveurl="&base64encode(productfolder&rs("foldername")&"/")&"&sourcevalue="&base64encode("parent.document."&formtype&"product.simages.value")&"';</script>
修改如下, 在IE和FF可以成功兼容。
<script>parent.frames[""simageframe""].document.location='upload/upfile.asp?saveurl="&base64encode(productfolder&rs("foldername")&"/")&"&sourcevalue="&base64encode("parent.document."&formtype&"product.simages.value")&"';</script>