internet-explorer-11

SetTimeout() won't execute the function

﹥>﹥吖頭↗ 提交于 2019-12-06 11:37:24
So this is my code snippet: 'in VBScript Sub Main() Dim timeoutTimer 'more scripts here 'more scripts here 'more scripts here timeoutTimer = window.setTimeout("alert()", 2000) Call WaitForAnEvent() 'This function waits for an event to happen 'if there is no event then code execution stop's 'and wait 'more scripts here 'more scripts here 'more scripts here End Sub Sub alert() MsgBox "Help!" End Sub What happens is, there are times when alert() is not triggered, and I don't have any idea why. I conducted some research about setTimeout() and they said that setTimeout will be triggered if the

deleteRule CSSKeyframesRule method confusing behaviour in IE11

半城伤御伤魂 提交于 2019-12-06 11:14:08
I have created basic animation of a circle using css @keyframes. I'm using javascript to trigger animation start/stop by click inside the circle. The animation itself could be divided into 5 (looped) phases: pause-expand-pause-shrink-pause (see @keyframes css section below) The goal I want to achieve is, eventually, to be able to set animation duration and change the values of keyframes (say by having input fields for pause and expand/shrink durations - details doesn't really matter for the scope of this question). I have put together a JavaScript function, to perform this task, and have set

Sending '@' special character with SendKeys to IE 11

风流意气都作罢 提交于 2019-12-06 10:11:31
I'm trying to send a special character to a textbox using the SendKeys method in Internet Explorer 11. I didn't have this problem while trying to send special characters in other browsers, but Internet Explorer is sending completely different characters when trying to send special characters. Most of the specials characters do work (e.g. !#()$%&/) but the characters like @{}§ are not working, and instead of those characters, something like vbnm is written in the textbox. These letters represents the keys with which the special signs are created in combination with the key Alt Gr (e.g. Alt Gr +

IE11 - Flex child takes full height [duplicate]

假如想象 提交于 2019-12-06 10:02:18
This question already has answers here : How to make a sticky footer using flexbox in IE11? (5 answers) flex container min-height ignored in IE (3 answers) Closed 2 years ago . I have a problem with Flexbox on IE11. What I'm trying to do is to have one parent with 3 children. One header with a fixed size, a footer with a fixed size and in between a content area which should take the remaining space. Here's the code - it works with Chrome but not with IE11: .parent { display: flex; flex-direction: column; max-height: 500px; } .header { flex: 0 0 auto; background: red; height: 50px; } .content {

Incomplete HTML in IE 11

牧云@^-^@ 提交于 2019-12-06 09:50:55
I am working on a site that does not render in IE 11, but works fine in every other browsers. When I debug it using F12 Developer Tools, the DOM is essentially empty except from the header section. When I view the source code, it only returns the header section and part of the navigation. However, when I add the site under Compatibility View settings the page renders correctly, but then causes other problems . I would like to fix the underlying issue rather than require users to add to Compatibility Mode or have to set the x-ua-compatible header tag. I cannot think what would cause it to only

Javascript only detection of “Do not track” settings in IE11

偶尔善良 提交于 2019-12-06 09:05:10
问题 I would like to respect the DNT settings in all browsers using only javascript (I don't have server side access to the host server). I got the following from https://stackoverflow.com/a/16947583/266960 var isDNT = navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1"; This works in all browsers but IE11 (specifically 11.0.9600.16428 run through [http://spoon.net/]), which does not seem to honour any of the above BOM properties (I tried setting the DNT

IE 11 magically crashing when doing animation with velocity.js and svg

旧街凉风 提交于 2019-12-06 08:42:52
the js fiddle showing the crash of ie 11 when running velocity.js to do a svg animation just left click on the arrow with the f next to it this only happens in IE 11, maybe on other versions of IE too. Chrome works fine as it seems. HTML <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.1/velocity.js"></script> </head> <body> <style type="text/css"> body { background-color:#000000 } #box1 { position: absolute; left: 250px; top: 330px; width: 257px; height: 62px; opacity: 0; z

Crossbrowser css gradient in IE10, IE11

狂风中的少年 提交于 2019-12-06 08:39:34
I did a gradient for dark buttons in all browsers, it appears good, except IE10, IE11 versions. Light stripe on top and bottom. I generate gradient by colorzilla gradient editor. link to buttons HTML <div class="dark-button">div button</div> CSS .dark-button { background: #0874b6; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI

jquery ajax hits error callback before getting response from the server - IE11

梦想的初衷 提交于 2019-12-06 07:51:40
I make an async ajax call to the server, but the error callback is hit before getting response from the server (I can see it using fiddler): $.ajax({ url: 'Login.aspx/AuthenticateRegularUser', type: 'POST', contentType: 'application/json; charset=utf-8', async: true, dataType: "json", data: '{ "emailAddress": "' + emailAddress + '","password": "' + password + '","verificationCode": "' + verificationCode + '" }', success: function(Result) { if (Result != "") { var ClientResponse = JSON.parse(Result.d); if (ClientResponse.Success) { //DO SUCCESS } else { //DO FAIL } } }, error: function(xhr,

Internet Explorer 11 (IE 11) Throws Syntax Error using parseFromString in DOMParser

China☆狼群 提交于 2019-12-06 07:39:47
问题 I have some Javascript on a webpage which works fine in Chrome and Firefox; when testing in IE 11 however it fails. I viewed the problem in IE 11 with the debug tools (F12) and the following code was at fault; specifically when using parseFromString a 'Syntax Error' is thrown: if (window.DOMParser) { parser = new DOMParser(); tmp = parser.parseFromString(resp, "text/xml"); } Any way I can work around this? 回答1: For IE this works for me xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc