Recently, a project used FCKeditor to download the latest version 2.6.3, configure everything OK, debug status everything OK, and publish it to the server (Windows Server 2003 sp2). The problem is ......
After the image is uploaded, a script error message is displayed at the lower left corner of the page. Click Open to view the prompt "no permission", and the upload window remains frozen in the progress bar (upload in progess, please wait ...). But the browser has the following error:
Row: 1
CHAR: 210
Error: no permission
Code: 0
URL: http: // ***. ***. ***/web/FCKeditor/Editor/filemanager/connectors/aspx/upload. aspx? Type = image.
1 first, you must ensure the write permission of the site, that is, the uploaded userfilepath or the upload folder has the write permission. XP directly writes the file. 2003 you can set the permissions of the corresponding account in the permission.
2. Ensure that the path of the uploaded folder is correct.
If both of the preceding settings are complete, an error is displayed in the lower-left corner of the browser, but the webpage has an error. "Double-click js to prompt that you do not have the permission, and you can also see the uploaded file in the upload folder, image, but fck is loading. the window has been frozen in the progress bar state, so consider whether it is caused by a script error.
Solution:Finally in the source code file filebrowser/fileworkerbase. find this line of code in Cs: response. write (@ "(function () {var d = document. domain; while (true) {try {var a000000000000top.opener.doc ument. domain; break;} catch (e) {}; d = D. replace (/. *? (? :. | $)/, ''); If (D. length = 0) break; try {document. domain = D ;}catch (e) {break ;}}) (); "); Delete try {document. domain = D;} catch (e) {break;}, recompile, and re-add the reference in the project to solve the problem.