ajaxfileUpload在Ie8上上传问题(弹验证程序提示框)

羽翼双飞 2015-04-11 03:06:46
ajaxfileupload再IE8上的上传文件时弹出


js代码为
function ajaxFileUpload() {
$.ajaxFileUpload ({
url:"/gree/dictionary/upLoad",//用于文件上传的服务器端请求地址
secureuri: false, //是否需要安全协议,一般设置为false
type:"post",
fileElementId: 'fileInput', //文件上传域的ID
dataType: 'json', //返回值类型 一般设置为json
data:{},
success: function (data, status) //服务器成功响应处理函数
{
if(data.handleMsg.status=="1"){
$.messager.alert("提示",data.handleMsg.message,"info");
query();
}else{
$.messager.alert("提示",data.handleMsg.message,"info");
}
},
error: function (data, status, e)//服务器响应失败处理函数
{
$.messager.alert("错误",e,"error");
}
}
)
return false;
}
错误的详细信息为
平台版本信息
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime : 2.0.50727.4927
System.Deployment.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
mscorwks.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
dfdll.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
dfshim.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)


部署 URL : http://localhost:9043/gree/dictionary/upLoad

错误摘要
以下是错误摘要,这些错误的详细信息列在该日志的后面。
* 激活 http://localhost:9043/gree/dictionary/upLoad 导致异常。 检测到下列失败消息:
+ 远程服务器返回错误: (500) 内部服务器错误。

组件存储事务失败摘要
未检测到任何事务错误。

警告
执行此操作的过程中未出现任何警告。

操作进度状态
* [2015/4/11 14:58:53] : 已启动 http://localhost:9043/gree/dictionary/upLoad 的激活过程。

错误详细信息
执行此操作期间检测到下列错误。
* [2015/4/11 14:59:10] System.Net.WebException
- 远程服务器返回错误: (500) 内部服务器错误。
- 源: System
- 堆栈跟踪:
在 System.Net.HttpWebRequest.GetResponse()
在 System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
在 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
在 System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)
在 System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId)
在 System.Xml.DtdParser.ParseExternalSubset()
在 System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
在 System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
在 System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
在 System.Xml.XmlCharCheckingReader.Read()
在 System.Xml.XsdValidatingReader.Read()
在 System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
在 System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
在 System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

组件存储事务详细信息
没有可用的事务信息。


引入的js为jquery.1.8.min.js 和ajaxfileupload.js juery.easyui.1.3.2.min.js
...全文
982 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
skyline how far 2017-08-16
  • 打赏
  • 举报
回复
引用 4 楼 a122741143 的回复:
我也出现了这个问题,前前后后花了我3天才解决,一直找不到办法,后来用调试工具打开调试,发现在ie8下,请求的返回头出现了问题,在ie8以上,返回头是没有问题的。可能是在ie8下丢掉了返回头,请求返回的时候改成了别的(忘了截图 囧o(╯□╰)o)。 由于我返回的就是一个string对象,所以我的代码如下response(HttpServletResponse): //ie8必须设置返回的ContentType response.setCharacterEncoding('utf-8'); response.setContentType("text/html"); try{ xxxxxxxx; } catch(xxxxx){ xxxxxxxx; } 大家可以根据自己需要返回的类型,尝试着去设置一下请求返回ContentType,应该就可以了
兄弟你是网上复制的答案吧
水木灵云 2016-01-18
  • 打赏
  • 举报
回复
我也出现了这个问题,前前后后花了我3天才解决,一直找不到办法,后来用调试工具打开调试,发现在ie8下,请求的返回头出现了问题,在ie8以上,返回头是没有问题的。可能是在ie8下丢掉了返回头,请求返回的时候改成了别的(忘了截图 囧o(╯□╰)o)。 由于我返回的就是一个string对象,所以我的代码如下response(HttpServletResponse): //ie8必须设置返回的ContentType response.setCharacterEncoding('utf-8'); response.setContentType("text/html"); try{ xxxxxxxx; } catch(xxxxx){ xxxxxxxx; } 大家可以根据自己需要返回的类型,尝试着去设置一下请求返回ContentType,应该就可以了
小步 2016-01-06
  • 打赏
  • 举报
回复
哥们你这问题解决了吗
勇者憮惧 2015-07-17
  • 打赏
  • 举报
回复
兄弟我也遇到了这个问题,你解决了吗?
羽翼双飞 2015-04-15
  • 打赏
  • 举报
回复
没有大神看吗?自己先顶起来

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧