internet-explorer-11

Site Doesn't Display Correctly in IE11

风格不统一 提交于 2019-12-01 04:38:16
问题 I have a website that displays correctly in IE7, IE8, IE9, IE10, all PC and Mac versions of Firefox and Chrome, Opera, and Safari. But, in IE11, it displays part of the header and javascript, but none of the html. Any ideas? http://www.ighome.com 回答1: The Network-tab in IE11 Developer Tools shows that there are no requests for your stylesheet, and your <head> content is rendered inline. This indicates that IE11 does not consider the content to be html (and won't parse it as such). You're

innerHTML doesn't work in IE11 and IE8

别说谁变了你拦得住时间么 提交于 2019-12-01 04:16:30
问题 I use these codes for refreshing a part of my page : var container = document.getElementById("mainForm:table_1"); var content = container.innerHTML; container.innerHTML= content; container.innerHTML worked well in firefox and chrome but it doesn't work in IE8 and IE11 I've read these links : .InnerHTML Not working properly in Internet Explorer and document.getElementById().innerHTML fails with 'Unknown Error' in IE but my problem is that I can't change the other part of my code easily due to

Internet Explorer DOM7009: Unable to decode image at URL: [url]

霸气de小男生 提交于 2019-12-01 03:58:46
问题 I'm working with a SharePoint site in O365. The site includes a List/Library that contains nothing but employee images with .GIF extensions. A 3rd party process imported the images into SharePoint. I have no details on that process. None of the images will display in IE 11 when served from the SharePoint O365 server. The image will not display even when loaded by itself. The problem is not related to the amount or size of the images as this question discusses. The same exact images will

Adding a function to Array.prototype in IE results in it being pushed in to every array as an element

∥☆過路亽.° 提交于 2019-12-01 03:57:05
I have added the following polyfill to Array in the beginning of my project: if (!Array.prototype.find) { Array.prototype.find = function(predicate) { if (this === null) { throw new TypeError('Array.prototype.find called on null or undefined'); } if (typeof predicate !== 'function') { throw new TypeError('predicate must be a function'); } var list = Object(this); var length = list.length >>> 0; var thisArg = arguments[1]; var value; for (var i = 0; i < length; i++) { value = list[i]; if (predicate.call(thisArg, value, i, list)) { return value; } } return undefined; }; } This works perfectly

Border-radius causes weird behaviour in IE9, IE10 and IE11

北战南征 提交于 2019-12-01 03:52:46
问题 This Fiddle produces expected results in real browsers (I tried FF, GC, Safari), but breaks unexpectedly in IE9, IE10 and IE11. No problems with IE7 or IE8. <div class="root"> Top <div class="footer">Bottom</div> </div> .root { background-color: red; position: absolute; height: auto; bottom: 0; top: 0; left: 0; right: 0; margin: 25px; border: 0; border-radius: 7px; overflow: hidden; } .footer { background-color: green; position: fixed; left: 0; bottom: 0; width: 100%; height: 100px; } If I

IE 11 AngularJS error - Object doesn't support property or method 'from'

徘徊边缘 提交于 2019-12-01 03:50:01
问题 In my JavaScript I have a function detectEnvironmentAndGetLEAndDepot() which is called onload via HTML. I'm working with wicket, and need to take values held in the back-end, so I fire them to the screen, hide them, and search the <span> values from my JS for the name value, for example if(v.getAttribute('name') === 'LE'){do stuff} or if(v.getAttribute('name') === 'depot'){do stuff} (I'm sure not the most elegant solution, but I needed a quick one!). Then within the function

Regular expression to detect Internet Explorer 11

荒凉一梦 提交于 2019-12-01 03:48:56
I am using this preg_match string preg_match('/Trident/7.0; rv:11.0/',$_SERVER["HTTP_USER_AGENT"] to detect IE11 so I can enable tablet mode for it. However it returns "unknown delimiter 7". How can I do this without PHP complaining at me? Is this really a regular expression or just a literal string? If it's just a string, you can use the strpos function instead. if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false) { // your code } If it's a regular expression, you must escape special characters like / and . EDIT: You can see in the comments of this answer that the code

Internet Explorer Returning Wrong Length of String [duplicate]

与世无争的帅哥 提交于 2019-12-01 03:25:35
This question already has an answer here: ToLocaleDateString() changes in IE11 5 answers I've ran into a possible bug with IE where calling the JavaScript . length function returns a value that is off by 1 if/when the string was derived from .toLocaleString() . var d = new Date(); var locale = navigator.language; var month = d.toLocaleString(locale, { month: "long"}); // month.length will return the length of the month string +1 //(eg: if month = "March", month.length will return 6.) Interestingly, the code example of above will return true (in IE) for the following: (month[0] should be "M")

IE + overflow: hidden

会有一股神秘感。 提交于 2019-12-01 03:20:52
I don't know is that an issue or bug, but when I use overflow: hidden , selecting the text and moving the cursor to the page bottom in IE, the page is scrolling (I tried IE9-IE11)! When I use Firefox/Opera/Chrome/Safari the page isn't scrolling... I have to use overflow: hidden , but it has an odd behavior in IE. So, my question is: how can I avoid page scrolling in IE? Use -ms-scroll-limit: 0 0 0 0; to prevent any scrolling whatsoever in IE 10+. For older browsers you can write a workaround using JavaScript. Example of CSS and JavaScript: body { overflow: hidden; -ms-scroll-limit: 0 0 0 0; }

AngularJs dynamic download from response

柔情痞子 提交于 2019-12-01 03:16:00
问题 I have written a directive based on Scott's answer. You'd use it like so: <button class="btn btn-success" download-response="getData()" download-success="getDataSuccess()" download-error="getDataError()" download-name="{{name}}.pdf" download-backup-url="/Backup/File.pdf"> Save </button> Issue: the code below throws an error TypeError: Invalid calling object in IE11 on the first method (line: saveBlob(blob, filename); ). Even though it falls back to other methods of downloading, it is my