ewebeditor在上传文件时出现javascript错误:缺少十六进制错误
来源:互联网 发布:cda数据分析就业 编辑:程序博客网 时间:2024/06/13 00:48
JSP版ewebeditor在上传文件时出现javascript错误:缺少十六进制错误
原因:JS提交数据时出现特殊符号"/";
在文件upload.jsp中 sPathFileName=sUploadDir+sSaveFileName; 其中sUploadDir读取到的是文件保存路径
out.println("<script language=javascript>");
out.print("parent.UploadSaved('");
out.print(sSaveFileName);
out.print("');var obj=parent.dialogArguments.dialogArguments;if (!obj) obj=parent.dialogArguments;try{obj.addUploadFile('");
out.print(sOriginalFileName);
out.print("', '");
out.print(sSaveFileName);
out.print("', '");
out.print(sPathFileName);//导致这个位置发生JS错误
out.print("');} catch(e){}");
out.println(";history.back()</script>");
修改方法:sPathFileName=sUploadDir+sSaveFileName; 改为:sPathFileName=sSaveFileName;
程序运行正常!
- ewebeditor在上传文件时出现javascript错误:缺少十六进制错误
- JavaScript错误,缺少十六进制
- javascript 错误“缺少十六进制数字”的处理
- php上传大文件时出现错误
- struts 文件上传出现错误
- 编译时出现缺少 Python.h 错误
- 字符串内特殊字符在html_javascript_xml等内使用时的转换 ,"缺少十六进制数字"错误的处理
- SQLServer 备份和恢复出现错误 鏃文件缺少
- 上传文件时错误
- jquery.validate.js在IE6 引用时出现 [错误消息:缺少 ';']
- 上传文件出现Mach_msg_trap错误之解决
- IE8 上传文件出现C:\fakepath\错误
- JAVAweb上传文件出现的错误
- ext文件上传出现奇怪错误
- uploadify 上传文件出现HTTP 404错误
- iOS打包文件准备上传出现错误
- uploadify上传文件出现http302错误
- $.ajaxFileUpload上传文件出现错误...问题总结
- Interface Parameter
- SQL 和 MDX 比较
- CListCtrl使用技巧
- Unit 19 At the bar
- ERP项目教训
- ewebeditor在上传文件时出现javascript错误:缺少十六进制错误
- VC中LNK 4006的错误
- 访问IIS元数据库失败
- servlet请求访问配置
- 荀子·劝学篇
- 開博新體驗
- Java关键字final、static使用总结
- 记录:TC20出现乱码的解决方法
- 学习STL map, STL set之数据结构基础(转)