internet-explorer-8

Why isn't this element rotation working?

こ雲淡風輕ζ 提交于 2019-12-29 07:44:07
问题 I'm trying to rotate text in IE8. According to this answer, it should be possible to rotate an element as tried in the following example: <!DOCTYPE html> <html> <head> <style> #enclosing { width: 20px; height: 100px; border: 1px solid; } #rotated { -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=6.123031769111886e-17, M12=1, M21=-1, M22=6.123031769111886e-17, SizingMethod='auto expand')"; width: 100px; } </style> </head> <body> <div id="enclosing"> <p id="rotated">rotated</p> </div>

Javascript: Object doesn't support method 'freeze'

主宰稳场 提交于 2019-12-29 07:41:36
问题 I am trying to create an enummeration in Javascript. The javascript code used is var FeatureName = { "FEATURE1": 1, "FEATURE2": 2, "FEATURE3": 3, "FEATURE4": 4, "FEATURE5": 5 } Object.freeze(FeatureName); When the method Object.freeze(FeatureName) , is called it works fine for all the browsers except IE7 and IE8. Is there any alternative to this? 回答1: John Resig provides an alternative. I haven't tried it in the browsers you mention. Try it and let us know. http://ejohn.org/blog/ecmascript-5

removing page scrollbars in IE8 (overflow:hidden not working)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 07:12:06
问题 Applying this overflow:hidden; to the body of my document has no effect in IE8. Any ideas why? 回答1: It depends on whether IE8 is rendering the page in Standards or Quirks mode. For example, the following HTML will be displayed without a scrollbar: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>test</title> </head> <body> <p>hello</p> </body> <

Detecting Arrow key press in IE via javascript/jQuery

大兔子大兔子 提交于 2019-12-29 05:49:07
问题 I'm trying to set up a menu that can be navigated via the arrow keys. I have this working fin in Firefox. Trying to get it to work in IE8 and after a bit of struggle, found that it was because IE8 wouldn't register a keypress on the arrows. To test: $(document).keypress(function (eh){ alert(eh.keyCode); }; In Firefox, pressing any of the arrow keys would trigger an alert of 37, 38, 39 or 40. In IE8, nothing. Any other key on the standard QWERTY keyboard would register, but not the arrow keys.

IE8 & IE7 onchange event is triggered only after repeated selection

做~自己de王妃 提交于 2019-12-28 06:24:05
问题 I have a group of radio with an onchange handler: <input type="radio" name="Q12" value="radio" id="Q12_0" onchange="nextPnl('Q12');"> <br/> <input type="radio" name="Q12" value="radio" id="Q12_1" onchange="nextPnl('Q12');"> ​ function nextPnl(did) { document.write(did); }​ The problem is that in IE8 & IE7, the onchange event is triggered only after repeated selection. Please view this demo in IE's Developer Tools [Browser Mode] IE8: http://jsfiddle.net/3zwur/2/ 回答1: This is due to a bug with

IE8 & IE7 onchange event is triggered only after repeated selection

爱⌒轻易说出口 提交于 2019-12-28 06:23:10
问题 I have a group of radio with an onchange handler: <input type="radio" name="Q12" value="radio" id="Q12_0" onchange="nextPnl('Q12');"> <br/> <input type="radio" name="Q12" value="radio" id="Q12_1" onchange="nextPnl('Q12');"> ​ function nextPnl(did) { document.write(did); }​ The problem is that in IE8 & IE7, the onchange event is triggered only after repeated selection. Please view this demo in IE's Developer Tools [Browser Mode] IE8: http://jsfiddle.net/3zwur/2/ 回答1: This is due to a bug with

Internet Explorer: “console is not defined” Error

若如初见. 提交于 2019-12-28 05:49:27
问题 I was using console.log() in some JavaScript I wrote and an error of: console is not defined was thrown in Internet Explorer (worked fine in other browsers). I have replaced it with: if (console) console.log("..."); If console is undefined , I would expect the condition to evaluate as false . Ergo, the statement console.log wouldn't be executed and shouldn't throw an error. Instead, an error of: console is not defined at character 4 is thrown. Is this a IE bug? Or is that "if" condition

No support for indexOf in IE 8? [duplicate]

ぃ、小莉子 提交于 2019-12-28 04:26:11
问题 This question already has answers here : How to fix Array indexOf() in JavaScript for Internet Explorer browsers (10 answers) Closed 6 years ago . I have a requirement where I create radio buttons dynamically based upon JSON response. So far what I did works in Chrome and firefox, but gives Object doesn't support this property or method on if(subItem[1].indexOf(",") >= 0) line My code $("#sList").live("change", function(){ var currentService=this.value; var c1Svc=[]; var c2Svc=[]; if(absP

execCommand(“insertHTML”, …) in Internet Explorer

我只是一个虾纸丫 提交于 2019-12-28 04:15:14
问题 I'm building a wysiwyg-editor with an editable iframe using document.execCommand() . Now i need to use the "insertHTML" command which works perfectly in Chrome and Firefox but of course it doesn't work in Internet Explorer: function run() { document.getElementById("target").focus(); document.execCommand("insertHTML", false, "<b>ins</b>"); } <div contenteditable id="target">contenteditable</div> <button onclick="run()">contenteditable.focus() + document.execCommand("insertHTML", false, "<b>ins

Z-index broken in IE8?

依然范特西╮ 提交于 2019-12-28 02:56:09
问题 This code works in every other browser I've tried, except IE8. IE8 appears to ignore the z-index - and the pop-up becomes a pop-under. It's in the right place, just renders underneath the thumbnail. Anyone? Thanks! HTML: <a class="thumbnail" href="#thumb"> <img src="comic_a3_thumb.jpg" height="300" width="212" border="0" style="float:right; margin-top:10px;margin-bottom:10px;" alt="description" /> <span> <img src="/images/comic_a3_popup.jpg" /> </span> </a> CSS: .thumbnail{ position: relative