internet-explorer-9

Table rendering with cols and colspan on tds in IE9

两盒软妹~` 提交于 2019-12-11 13:12:02
问题 I am making HTML-tables to show data, and I have a varying number of columns in the tables, but want to keep the same number of "columns in the background", to have consistent widths of the columns. The reason for this is specific to my application and is not relevant to the problem, since this seems to be a bug (or have I misunderstood how col 's and colgroup 's should work?) In the HTML I show here I have reduced the number of actual columns to two. I make my tables using a colgroup like

IE9 javascript sort order … why?

℡╲_俬逩灬. 提交于 2019-12-11 12:45:26
问题 I noticed IE9 sort order is changing elements order when comparison function returns 0 . See: var myarray=[ {id:1,val:0}, {id:2,val:0}, {id:3,val:7}, {id:4,val:41} ]; myarray.sort(function(a,b){return a.val - b.val}); for(var i in myarray) { console.log(myarray[i].id); } Current stable versions of Chrome, Firefox, Opera and Safari got the following output: 1 2 3 4 . Same output for IE7 and IE8. IE9 output is: 2 1 3 4 Why? Is that normal? 回答1: From MDC (emphasis mine): If compareFunction(a, b)

IE9 Submit-time CSS Repainting

我的未来我决定 提交于 2019-12-11 11:59:39
问题 We have an animated spinner gif we use to spice up the submit button after the user has submitted a form. If all validation passes on a form, we assign background via jQuery's css() method, setting the background image, positioning and color all in one. IE9 is not showing the background image on submit, though it continues to be seen in other browsers. This technique has worked fine in previous IE browsers, but seems to have broken in IE9, including in older "browser modes". I'm not sure if

Trigger audio stop in iframe when parent window navigates away (hashbang)

…衆ロ難τιáo~ 提交于 2019-12-11 11:24:01
问题 I have a web app in an iframe (Facebook Tab App) on a web page (Facebook). The web app plays audio and when the user navigates away, usually by clicking on another Facebook link, the page loads another Facebook page and the audio stops. This works on all browsers except Internet Explorer (IE9). Audio continues to play when I navigate to another Facebook page. Facebook seems to use the approach where many of their pages are displayed (using hashbang #! approach) without standard page reloading

IE9 “Can't execute code from freed script” when calling hasOwnProperty()

試著忘記壹切 提交于 2019-12-11 10:48:28
问题 Here is the scenario: I have a container page that swaps iFrames in and out to show different content. All iFrames come from the same domain. https is enabled. The container page has an object called Flow, with functions set/getParameter The first iFrame, s0-welcome, creates an object, data, and calls Flow.setParameter('data', data); The container then replaces the first iFrame with a second iFrame, s1-transfer. The s1-transfer calls Flow.getParameter('data') and stores it in a local variable

CORS with jQuery and XDomainRequest in IE8/9

耗尽温柔 提交于 2019-12-11 10:31:01
问题 UPDATE: I highly recommend not investing any time in XDomainRequest, because it is a terribly poor implementation with many limitations. It basically only really works for GET requests to non-ssl servers, so you might as well use jsonp or whatever. I am using CORS to call a cross domain API, however Internet Explorer is giving issues. CORS should be possible in IE8 and IE9 through the XDomainRequest object, however I can't get things to work.. JQuery refuses to provide native support for

JavaScript IE 9: Custom sort function

前提是你 提交于 2019-12-11 10:26:46
问题 In IE 9, if I type this in the console: [1, 4, 2, 3].sort(function (a, b) { return a < b; }); The resulting array is: [1, 4, 2, 3] . If I do this in FF/Chrome, I get it, reverse-sorted: [4, 3, 2, 1] . How come this doesn't work in IE? EDIT: Is there a function out there that abstracts these browser differences? In other words, is there a function I can pass function(a, b) { return a < b; } in and get the same result in all browsers? Any open-source stuff? 回答1: Maybe because the function is

attaching multiple events to a button issue in IE

旧时模样 提交于 2019-12-11 09:38:21
问题 I am working on very old application designed in early 2000. The page work on IE9 perfectly but not on firefox. After a lot of digging I got one issue. I have reproduced that in this simple example. function bindEvent(el, eventName, eventHandler) { if (el.addEventListener) { el.addEventListener(eventName, eventHandler, false); } else if (el.attachEvent) { el.attachEvent('on' + eventName, eventHandler); } } function fun() { var ele = document.getElementById("tt"); bindEvent(ele, "click", one);

IE9+8 HTML5 Video - video loads but “invisible”

这一生的挚爱 提交于 2019-12-11 08:35:16
问题 I have an html5 video tag on a page, with a flash fallback for IE8. The video is hidden with display:none and attached to parent 'a' until a play button (image) is pressed. At that point the video element is moved to parent 'b' (a box within an overlay) and i call jQuery's show(). On Chrome, FF and Safari, the video shows. However, on IE9 and IE8, the video doesn't show, but is there. Meaning, I can right click where it should be and will get a video related context menu. If I click play at

Html2Canvas not working in IE9 only

假装没事ソ 提交于 2019-12-11 07:56:18
问题 I want to print div area automatically. So I have used Html2Canvas. It working perfectly in all browsers except IE9. Please correct my code if it has any bugs function printSchedule() { var browserName = '${sessionScope.BrowserContext.browserName}'; //console.log("browserName::"+browserName); if(browserName != 'msie'){ $("#printArea").html2canvas(); } else if(browserName == 'msie'){ var el = document.createElement('printArea'); G_vmlCanvasManager.initElement(el); var ctx = el.getContext('2d')