Tag: internet explorer 10

IE10 – 选择要上传的文件后,必须单击2次才能提交表单

在一个表单中,我有一个文件输入皮肤用jquery和css和一个提交按钮。 Continuer http://jsfiddle.net/CsL9t/ 此处的问题仅出现在IE10上:选择文件后,必须单击提交按钮2次才能提交表单。 我尝试在文件输入改变时强制关注按钮,但它没有帮助。 我尝试使用jQuery触发click, jQuery(‘#myInput’).parents(‘form’).find(“button[type=’submit’]”).click(); 但在第三次提交之前,我收到了2次“拒绝访问”的消息。 任何意见或建议将非常感谢。 谢谢

Internet Explorer 10和popstate没有绑定

我想知道什么可能导致window.addEventListner(‘popstate’, foo, false) window.attachEvent(‘onpopstate’, foo)和window.onpopstate=foo不能触发函数foo。 我们有类似于此的代码,在生产中它不会触发,但在开发中它确实如此。 是否可以通过JS禁用popstate事件或导致某种冲突或竞争条件发生? 编辑( Gustin ):+示例代码 PopStateEvent.js(完整列表,使用jQuery 1.9.1): $(window).bind(‘popstate’, function () { alert(“Pop state event received!”); }); 如果我用IE 10 (10.0.9200.16484)测试这个非常简单的例子,我从未收到过弹出状态事件(即警报框永远不会出现)。 即使我离开并通过IE的后退按钮返回。 即这个Q / A并不能解决我的问题。 使用Chrome 24 ,一切正常。

IE需要双击自定义按钮

我有一个潜水的脚本: HTML: Click me! File is uploaded! JavaScript(JQuery 2): $(document).ready(function () { $(“input”).on(“change”, function () { $(“div#notice”).fadeIn(); //$(“form”).submit(); //If you want it to submit on your site uncomment this }); }); CSS: div#wrapper { background-color: #ccc; position: absolute; width: 300px; height: 200px; } div#wrapper > form > input { color: rgba(0, 0, 0, 0); zoom: […]

jquery ajax $ .post不工作​​IE10

我试过这两种方式。 方式1 function Login() { var email = encodeURIComponent($(“#loginemail”).val()); var pass = encodeURIComponent($(“#password”).val()); $.ajax({ url:”/user/login”, type: “POST”, data: {email:email, password:pass}, dataType: “json” }).done(LoginDone); //$.post(“/user/login”, {email:email, password:pass}, LoginDone); } 方式2 function Login() { var email = encodeURIComponent($(“#loginemail”).val()); var pass = encodeURIComponent($(“#password”).val()); $.post(“/user/login”, {email:email, password:pass}, LoginDone); } 两种方式都可以在chrome上正常工作,但出于某种原因,IE不会在POST发送数据{email:email, password:pass} ,或者根本不会。 我已经在本地服务器和实时网络服务器上尝试过,两者都有相同的结果。 在这里使用IE10。

在IE 10中不适用

我正在尝试创建客户端可编辑表。 这是我的代码。 它适用于Chrome,Firefox但不适用于IE。 IE的脚本还有什么关系吗? $(document).ready(function() { $(“td”).click(function(){ if($(this).attr(“contentEditable”) == true){ $(this).attr(“contentEditable”,”false”); } else { $(this).attr(“contentEditable”,”true”); } }) }); H1 H2 H3 H4 R1 R1 R1 R1 R2 R2 R2 R2

使用带有Node和Express的IE10中的CORS的安全性错误

我正在构建一个托管在http://example.com上的Backbone应用程序,该应用程序使用https://api.example.com托管的API。 对于API,我使用带有Express.js框架的Node.js。 我的CORS解决方案似乎适用于除IE以外的每个主要浏览器(它甚至在IE10中失败)。 当从IE10发起请求时,请求永远不会到达API服务器。 据我所知,该请求甚至没有被发送。 当我使用IE10的开发人员工具检查请求时,请求标头和响应标头都是空白的。 当从任何其他浏览器发送请求时,将收到请求并正确生成响应。 这是我在控制台中看到的错误: SCRIPT 7002: XMLHttpRequest: Network Error 0x4c7, The operation was canceled by the user. 该请求使用jQuery: $.ajax({ url: apiRoot + “/endpoint”, success: function(response) { // Omitted irrelevant code } }); 根据这篇文章,默认情况下在IE中禁用CORS并且必须启用CORS: Internet Explorer忽略Access-Control-Allow标头,默认情况下禁止Internet区域的跨域访问。 要启用CORS,请转到工具 – > Internet选项 – >安全选项卡,单击“自定义级别”按钮。 找到其他 – >跨域访问数据源设置,然后选择“启用”选项。 果然,当我启用此设置时,请求会通过,一切正常。 但是,我已经读过这个设置实际上与CORS无关, 不应该影响它。 当使用此工具测试CORS兼容性时,无论是启用还是禁用此设置,IE10都会通过,这使我相信CORS 已启用,我只是做错了。 此外,当我运行Fiddler时,一切似乎都应该起作用,因为Fiddler充当代理人。 作为参考,这是服务器端的CORS相关代码: […]

在IE10 / Win7上运行jQuery崩溃

我现在只是在我的ASP.net网页(实际上是Site.Master文件)中包含jQuery(1.9.1,但旧的1.8.3表现相同)。 在IE9 / Win7-64下运行良好,但自从我升级到IE10(仍然是Win7-64)后,现在当我在本地运行网页,选择Internet Explorer并在Visual Studio中运行时,我遇到了exception。 例外是在jquery-1.9.1.js文件的第4224行。 // Opera 10-12/IE8 – ^= $= *= and empty values // Should not select anything div.innerHTML = “”; if ( div.querySelectorAll(“[i^=”]”).length ) { rbuggyQSA.push( “[*^$]=” + whitespace + “*(?:\”\”|”)” ); } // FF 3.5 – :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error […]

IE10和jQuery:SCRIPT5009:“$”未定义

我遇到了这个非常恼人的问题,它出现在IE10中,就像在IE9中一样。 鉴于此HTML: Any Consult 这个(scripts.js)在FF和Chrome中工作正常,但是IE10会抛出SCRIPT5009错误。 scripts.js就像(简单但经过测试的例子): $(document).ready(function() { alert(‘Hello’); }); IE10没有加载jQuery-File,我几乎尝试了所有东西。 我改变并减少了文件名,我幸免于难 IE9.js是一个浏览器polyfill文件。 这是我的截图(“ist undefiniert”表示“未定义”,“Die Webseite reagiert nicht”表示“页面已关闭”,“Debugger wasden”表示“停止调试”,$(’。aLang’)是一个类在我的HTML中。

如何使用javascript检测IE10?

正如许多已经在其他问题(也在jQuery文档中)中发布的那样,旧的jQuery.browser.version已被弃用,仅适用于jquery1.3。 您是否知道另一种检测它的简单方法,我可以在之前的代码中包含: function handleInfoDivPopupVisibility(dynamicEleId, staticEleId){ var parentContainer = $(‘headerSummaryContainer’); var dynamicEle = $(dynamicEleId); var staticEle = $(staticEleId); if(isIE() && parentContainer){ if (jQuery.browser.version != 10) { // I need to find a way to detect if it’s IE10 here. parentContainer.style.overflow = ‘visible’; } } dynamicEle ? dynamicEle.style.display = ” : ”; if(dynamicEle && staticEle) gui_positionBelow(dynamicEle, staticEle); […]

tableToExcel jQuery在IE中引发奇怪的错误

我正在使用jQuery函数将我的HTML表导出到Excel。 这是我在很多其他地方使用的function,它在Chrome中适用于我: var tableToExcel = (function() { var uri = ‘data:application/vnd.ms-excel;base64,’ , template = ‘{table}’ , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) } return function(table, name) { if (!table.nodeType) table = document.getElementById(table) var ctx = { worksheet: name || ‘Worksheet’, […]