internet-explorer-9

jquery 1.6.1 - selecting xml

江枫思渺然 提交于 2019-12-10 16:25:02
问题 In jquery 1.4.2 i was able to select xml residing in my html page by doing the following: var xmlSettings = $("#xmlSettings")[0]; this is the same as: document.getElementById("xmlSettings"); //this still works fine In jquery 1.6.1 xmlSettings is undefined. all i did was upgrade my jquery from 1.4.2 to 1.6.1 and now this is not working. is there a different selection that i need to do, or do i need to add a plugin? xml in Html page: <xml id="xmlSettings"> <items> <item name="Test1">Test data 1

@font-face behavior inconsistencies inside of @media query rules (IE9)

放肆的年华 提交于 2019-12-10 15:58:29
问题 The current behavior in Chrome, Firefox and Safari when it comes to media queries and resources is to not load the resource until you need it; e.g. a mobile device with a 480px resolution will not load images inside of max-device-width: 1000px rule. Naturally this is great for keeping weighty desktop resources away from mobile devices. I am running into inconsistencies with this approach when it comes to loading font resources. The following will load the web font for all browsers listed

CSS fonts not loading in IE9

拜拜、爱过 提交于 2019-12-10 15:51:38
问题 I have a problem with @font-face fonts not loading in IE9. IE8 and below works perfect, as do every other browser I've tried. This is my CSS (font squirrel syntax): @font-face { font-family: 'ssmicon'; src: url('ssmfont3.eot'); src: url('ssmfont3.eot?#iefix') format('embedded-opentype'), url('ssmfont3.woff') format('woff'), url('ssmfont.ttf') format('truetype'), url('ssmfont.svg#svgssmfont') format('svg'); font-weight: normal; font-style: normal; } All glyphs are in the basic latin range (I

CSS3 IE9 click through pseudo-element?

。_饼干妹妹 提交于 2019-12-10 15:39:07
问题 I have the following fiddle set up with a sample on how to style a select box with CSS3. I'm having trouble in IE9. The label:before and label:after pseudo-elements are preventing the 'click' action of the drop down arrow that they are positioned over. This works in fine in every single browser except IE9. Does anyone have any idea how to tweak this to work? I'm all ears! http://jsfiddle.net/CXJTv/ P.S. I'm only interested in css ideas. I do not want JavaScript to be a requirement to get this

IE9 Javascript slower than IE8 - that's weird!

为君一笑 提交于 2019-12-10 15:31:07
问题 I'm having difficulty in explaining why the following code runs slower in IE9 than IE8! Here's some test code that runs smoothly in about half a second in (latest) FF/Chrome/Safari on OS X, WinXP, and Win7 plus IE7 & 8 on WinXP (for simplicity I removed the tweak that makes it work in IE6). For some reason I can't explain, it's awful in IE9, slow and clunky. Reducing the time for the setTimeout makes it a bit quicker but no less jerky. I've tried removing and benchmarking a number of what

IE 9 and 10 yield unexpected and inconsistent MediaError's

别等时光非礼了梦想. 提交于 2019-12-10 15:29:49
问题 We have a set of HTML blocks -- say around 50 of them -- which are iteratively parsed and have Audio objects dynamically added: var SomeAudioWrapper = function(name) { this.internal_player = new Audio(); this.internal_player.src = this.determineSrcFromName(name); // ultimately an MP3 this.play = function() { if (someOtherConditionsAreMet()) { this.internal_player.play(); } } } Suppose we generate about 40 to 80 of these on page load, but always the same set for a particular configuration. In

Replace script if viewed in IE9?

别说谁变了你拦得住时间么 提交于 2019-12-10 15:19:46
问题 How easy would it be to run a different javascript depending on the user browser? For example if someone visits the site with IE9 I would like it to run a different script to the one it would run normally for Chrome users. 回答1: You can use conditional comments for this: <!--[if lte IE 6]> <script>alert('lte stands for less than or equal to')</script> <![endif]--> <!--[if lt IE 7]> <script>alert('lt stands for less than')</script> <![endif]--> <!--[if gte IE 9]> <script>alert('gte stands for

Internet Explorer 9 policy setting is affecting window.postMessage

喜夏-厌秋 提交于 2019-12-10 15:16:16
问题 I have a window.postMessage in a JavaScript file. This appears to be failing in IE9 because of some policy settings. I can't figure out which policy it is. Does anyone have any ideas which one it could be? 回答1: I believe that the key you are looking for is: HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGING If the above mentioned registry key is set then IE (all versions from what I can tell) will return undefined for the

alternative to foreignObject for IE9

强颜欢笑 提交于 2019-12-10 14:44:13
问题 i really like foreignObject to show HTML regions over svg, but today i found out that it doesnt work in IE9 (why am i not surprised) ok. So i am looking for an alternative that works in IE9, but it seems difficult. The great thing of using foreignObject to display multiple HTML elements. My D3.js Force layout graph is working great in chrome and FF , but in IE9 it fail because of foreignObject . i add many HTML elements in to Div and also more CSS stuff. I try to replace foreignObject with

JQuery not working in IE 9.0.8, but works with dev tools open

有些话、适合烂在心里 提交于 2019-12-10 14:36:22
问题 The following works in all browsers except IE 9.0.8. It loads a survey form within div with an ajax request. $('.tab-content').on('click', '.show_survey_form', function(e) { e.preventDefault() target = $(this).attr("data-target") my_href = $(this).attr("href") console.log("load: " + target + " target: " + my_href) // load: #survey_response_form_33 target: /surveys/33/survey_responses/edit_multiple // Don't make a request unless the form is opening. if ($(this).hasClass('collapsed')) { console