使用 FCKeditor 的上传功能时,在同一台机器上调试是成功的,但当从另外一台机器进行上传时,就会遇到文件可以上传成功,但上传界面会一直停留在等待状态,无法返回的问题。查看IE的提示,发现有“没有权限”的错误提示。这个问题也是我今天一早调试时才发现的。在网上找到了解决办法:

打开下载的“FCKeditor.Net_2.6.3.zip”中的“FredCK.FCKeditorV2.vs2005.csproj”项目
再认识开FileBrowser -> FileWorkerBase.cs 118行
将原始代码:

Response.Write( @"(function(){var d=document.domain;while (true){try{var A=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );

替换为:

Response.Write(@"(function(){var d=document.domain;while (true){try{var A=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;}})();");
然后生成项目dll,更新FredCK.FCKeditorV2.dll到Web项目中即可。

我把修改后的DLL文件链出来,需要的朋友可以下载使用:FredCK.FCKeditorV2.dll

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/liyanwwww/archive/2009/05/14/4183127.aspx

posted on 2009-09-10 18:19  lao-zhang  阅读(506)  评论(0编辑  收藏  举报