internet-explorer

HighCharts.js is not rendering chart under IE8

[亡魂溺海] 提交于 2020-01-21 06:37:10
问题 I am using HighCharts together with Python to dynamically create charts. All works fine, however I get cannot read property "0" of undefined exception under IE8. Unfortunetly my client want it to work under IE8 as well. So heres the code of the main function: function generateChart(series) { var chart = new Highcharts.Chart({ chart: { renderTo: 'company_chart', }, xAxis: { type: "datetime", }, yAxis: [{ title: { text: "T1", }, },{ title: { text: "T2", }, }, opposite: true, }], plotOptions: {

CSS Opacity not working in IE11

ⅰ亾dé卋堺 提交于 2020-01-21 04:11:06
问题 I'm trying to make the background-color of a tr opaque with this CSS: .faded{ background-color: red; height: 100px; opacity: 0.4; filter: alpha(opacity=50); } Here is my test HTML: <table> <tr class="faded"> <td><div>testtesttesttestt</div></td> <td><div>testtsttesttesttt</div></td> </tr> </table> Everything works fine in IE9,10 FF24 Chrome 31+, but not in IE11. Please keep in mind that I don't care about the content of the table rows, only the background opacity. Screenshots and Jsfiddle

Why Bootstrap 3 navbar dropdown doesn't work in IE8?

本小妞迷上赌 提交于 2020-01-20 05:56:40
问题 The bootstrap 3 dropdown doesn't work in IE8, I don't know why, any help on that. some people say because BS added CSS filter property 回答1: bootstrap3 workes fine with ie 8 only you have make sure to add respond.js , html5shiv and latest version of jQuery like this: <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <!--[if lt IE 9]> <script src="js

Cross-domain jQuery.getJSON from a Node.JS (using express) server does not work in Internet Explorer

自作多情 提交于 2020-01-20 05:15:28
问题 This is an annoying problem, and I don't suppose that it's only IE that has this problem. Basically I have a Node.js server, from which I am making cross-domain calls to get some JSON data for display. This needs to be a JSONP call and I give a callback in the URL. What I am not sure is, how to do this? So the website (domainA.com) has an HTML page with a JS script like this (all works fine in Firefox 3): <script type="text/javascript"> var jsonName = 'ABC' var url = 'http://domainB.com:8080

internet explorer alternative to document.execCommand(“insertText”,…), for text insertion that can be undone/redone by the user

南笙酒味 提交于 2020-01-20 04:36:46
问题 When the user edits a contenteditable div , and press some keys, I would like to override the default behavior. For instance, I want to insert a normal line break when the user press ENTER. I do that using document.execCommand("insertText",...) This is the only way I have found so far to make this action undoable and redoable by the user. <div id="editor" contenteditable="true" style="white-space:pre-wrap"> Some text.... </div> <script> $("#editor").keydown(function(evt){ console.log(evt

element.setAttribute('style', 'attribute :value;') vs. element.attribute = 'value'

十年热恋 提交于 2020-01-20 03:06:01
问题 In javascript is there any difference between using element.style.setAttribute('width', '150px'); and element.style.width = '150px'; ? I have seen that keywords won't work with the first way (like this), but for non-keyword attributes is there a difference? 回答1: Both are perfectly valid. Can you give some examples which doesn't work in second way? Are you aware that attribute names needs to be camelcased first? E.g. element.style.marginTop instead of incorrectly element.style.margin-top . The

element.setAttribute('style', 'attribute :value;') vs. element.attribute = 'value'

隐身守侯 提交于 2020-01-20 03:04:18
问题 In javascript is there any difference between using element.style.setAttribute('width', '150px'); and element.style.width = '150px'; ? I have seen that keywords won't work with the first way (like this), but for non-keyword attributes is there a difference? 回答1: Both are perfectly valid. Can you give some examples which doesn't work in second way? Are you aware that attribute names needs to be camelcased first? E.g. element.style.marginTop instead of incorrectly element.style.margin-top . The

Image mysteriously ignoring max-width in Firefox & IE

旧巷老猫 提交于 2020-01-20 00:06:06
问题 So I'm trying to display images as big as possible with no cropping on any screen size. This means height: 100%; width: auto in landscape and width: 100%; height: auto in portrait . I'm serving up images that are big enough to fill retina iPads so pretty much every screen size will be scaling the images down. It does this fine in every browser & orientation except Internet Explorer & Firefox in landscape mode, leaving them far too big for pretty much every screen. This is only in landscape,

JS Async and await to work in internet explorer

旧城冷巷雨未停 提交于 2020-01-19 12:39:34
问题 I have already gotten my project to work on with async/await in every other browser, but apparently its not compatible in IE. (async function () { try { await getLayers(); } catch (err) { console.error(err) } }()); which calls my other function: async function getLayers() { try { $.when( await $.getJSON('http://' + ipAddress + '/api/Barriers/barrierGeoJSON', function (data) { createLayer(data[0].row_to_json, 'Barrier'); }), await $.getJSON('http://' + ipAddress + '/api/DistPoints

JS Async and await to work in internet explorer

倾然丶 夕夏残阳落幕 提交于 2020-01-19 12:37:50
问题 I have already gotten my project to work on with async/await in every other browser, but apparently its not compatible in IE. (async function () { try { await getLayers(); } catch (err) { console.error(err) } }()); which calls my other function: async function getLayers() { try { $.when( await $.getJSON('http://' + ipAddress + '/api/Barriers/barrierGeoJSON', function (data) { createLayer(data[0].row_to_json, 'Barrier'); }), await $.getJSON('http://' + ipAddress + '/api/DistPoints