internet-explorer-9

IE doesn't support relative paths in the base element when referencing CSS files

徘徊边缘 提交于 2019-12-18 16:58:54
问题 I have a site that uses a base tag to set an absolute path for relative URLs. It works fine in all the browsers I tested it in, except IE (big surprise). Based on the request that IE is making for the CSS file, it seems not to notice the base tag. It does acknowledge the base tag with everything else on the page. Why is this happening? Can anything be done about it, besides using an absolute path to reference the CSS file? Here is my code: <!DOCTYPE html> <html><head> <title>base test</title>

XDomainRequest aborts POST on IE 9

烈酒焚心 提交于 2019-12-18 16:56:54
问题 I am doing a cross domain Ajax call. My Code: if (window.XDomainRequest) // Check whether the browser supports XDR. { xdr = new XDomainRequest(); // Create a new XDR object. if (xdr) { xdr.timeout = 3000;//Set the timeout time to 3 second. xdr.onload = function () { alert("Success"); }; xdr.onerror = function () { alert("Error"); }; xdr.ontimeout = function () { alert("Error"); }; xdr.open("post", urlSearch); xdr.send(); } } else { $.ajax({ url: urlSearch, type: 'POST', dataType: 'json',

How to set the default value of a select box using JQuery in IE9?

≯℡__Kan透↙ 提交于 2019-12-18 15:44:55
问题 I have the following select box. <select id="selId"> <option id='1' value='1'>1</option> <option id='2' value='2'>2</option> <option id='3' value='3'>3</option> <option id='4' value='4'>4</option> <option id='5' value='5'>5</option> </select> In jquery I am doing the following to select the value 2 in the select box.: ... $("select#selId").find("option#2").attr("selected", "selected"); ... The same code sets the value of 2 in the select box in IE8 and Firefox. But its not working in IE9. I am

How to set the default value of a select box using JQuery in IE9?

落花浮王杯 提交于 2019-12-18 15:44:35
问题 I have the following select box. <select id="selId"> <option id='1' value='1'>1</option> <option id='2' value='2'>2</option> <option id='3' value='3'>3</option> <option id='4' value='4'>4</option> <option id='5' value='5'>5</option> </select> In jquery I am doing the following to select the value 2 in the select box.: ... $("select#selId").find("option#2").attr("selected", "selected"); ... The same code sets the value of 2 in the select box in IE8 and Firefox. But its not working in IE9. I am

Select box truncating text when body font size changed via javascript on document ready in IE 9

ⅰ亾dé卋堺 提交于 2019-12-18 15:13:09
问题 IE 9 is behaving quite strangely for me. I've got a page font-size changing control that saves the users setting and then in the document ready sets the body font-size to that size. It works fine, the issue is, when a page with dropdowns loads, in IE 9, sometimes the text is cut off. I've simplified the code down to this jsfiddle to demonstrate. http://jsfiddle.net/z6Paz/3/ the html: <select id="theSelect" name="theSelect" > <option value="2" >Letter ( 8.5 x 11" )</option> <option value="3"

target=“_blank” opens a new window in IE9, instead of a new tab

故事扮演 提交于 2019-12-18 14:49:35
问题 In my link, I have target="_blank" attribute, and it works in Chrome, Firefox, Opera, and of course, Safari and opens the link a new TAB . But When I click on it, in IE9 (and IE8) it opens a new window instead of being opened in a new tab. What should I do? 回答1: HTML and JavaScript provide no means to say if a new "window" should be a full window, or a tab, or whatever you want to call the Mobile Safari multiple views interface. So you live with it. 回答2: You can see in this question that the

MVC App causing IE9 to use older standards

家住魔仙堡 提交于 2019-12-18 13:12:51
问题 When I tested a new asp.net MVC app I created on another machine the layout was incorrect and seemed strange in IE9. When looking at Developer Tools the Mode/Standards were set to older versions and even Compatibility Mode. I changed this back to IE9 and was ok again. But then when I reopened the site it had set these values back again, is there some default for these that keep overriding or is my app for some reason causing these values to change to older versions? 回答1: There is some

Watin & IE9 - Cant click ok buttons

假如想象 提交于 2019-12-18 09:01:05
问题 I'm using Watin to navigate through a large number of different websites, and I'm using the great solution here to automatically click ok on all the javascript and ie boxes that popup. The problem is, this solution works great for ie6-ie8, but no longer works for IE9. Does anyone have anyone suggestions on how to get IE9 to auto click/close all prompts? (I'm using the latest Watin release, and the code below) public class something { public something() { IE browser = new IE("about:blank");

double click using IE

徘徊边缘 提交于 2019-12-18 08:56:10
问题 I have discovered a double-click problem in IE. The following is my HTML: <div id="test">Hello World!</div> And my jQuery: $('#test').bind('dblclick', function (event) { event.stopPropagation(); $(this).css({'background-color': 'red'}); }); In IE, do the following: Outside the DIV , mouse down → mouse up → mouse down → HOLD the mouse down. Then, with the mouse held down, move the mouse into the DIV and mouse up. The DIV turns red, as if the double-click event originated in the DIV. It seems

IE9 selectSingleNode missing from beta, how to overcome this in JavaScript?

喜你入骨 提交于 2019-12-18 07:12:49
问题 XMLDocument object in Internet Explorer 9 does not contain definition for selectSingleNode Xpath-based traversal anymore. Of course, I googled a little and came across this thread, where it is unsure is it missing by specification or by the fact it is still "in beta". http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/0dc55c4d-4a63-4a12-b5cc-e4e12cc13d91 Anyone have idea how to resolve this, is there some other way of XPath traversal trough XMLDocument that is "IE9 Way"? 回答1: