ajaxSubmit and Internet explorer issue
ajaxSubmit and Internet explorer issue
我被困了很长一段时间,有人能帮我吗?在Chrome和FF下一切正常,但由于某些原因,表单无法在IE7/IE8/IE9下提交。
function addFile()
{
if ( test > 30 ) { console.log( "addFile" ) ; }
var optionsAjaxFormFile = {
url : 'js/fileUpload.php',
success : showResponseFile
};
console.log("about to submit Ajax");
$("#addFile-form").ajaxSubmit( optionsAjaxFormFile );
}
我知道从控制台它去ajaxSubmit行,但它从来没有启动showResponseFile函数。为什么? ?
欢呼
不确定,但你可以试试这个:
$(document).ready(function() {
$("#addFile-form").submit(function(){
$(this).ajaxSubmit(optionsAjaxFormFile);
return false;
});
});
控制台只在IE9的DOM检查器打开时定义,将console.log()
替换为
if(typeof(console)!='undefined'){
console.log("about to submit Ajax");
}
或者你可以使用老的警告
在head标签之间添加
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
你还需要关闭并再次打开IE以使meta标签工作
相关文章:
- 视频HTML没有'无法在Internet Explorer 11上工作
- issue with FB.Event.subscribe
- Internet Explorer缺少占位符支持,特别是密码字段
- Internet Explorer中的文本换行错误
- 为什么我在Internet Explorer上看不到html元素
- internet explorer 8兼容模式下的Youtube api错误
- 当浏览器控制台未打开时,为什么要求会导致Internet Explorer 9超时
- Internet Explorer 8. Events
- jQuery表单验证适用于Mozilla和Internet Explorer,但不适用于Chrome或Safari
- element.dataset in Internet Explorer
- 使用Jquery Issue垂直重新排序Divs
- Facebook FB.init”;访问被拒绝”;在Internet Explorer 11中
- Internet Explorer 8, 9 window.open issue
- Internet Explorer 8 event.wheelDelta issue
- Internet Explorer - JavaScript issue
- Internet Explorer DOM issue
- AppendChild issue with Internet Explorer Javascript
- Jquery Internet Explorer/Edge toggleClass issue
- ajaxSubmit and Internet explorer issue
- fadeShow JS Issue w/ Internet Explorer