internet-explorer-9

jQuery cross domain request still failing in IE, but using jsonp

左心房为你撑大大i 提交于 2020-01-15 04:12:07
问题 My Ajax cross domain request is failing in IE 9 with "Access denied". I have read through several posts regarding this topic, and AFAIK it should work. IE9 and jQuery 1.8.1 Call is async , jsonp and crossdomain , cache is false . These are the prerequisites I have found. Works in latest Firefox and Chrome. jQuery.support.cors is true Even the response header is set: Access-Control-Allow-Origin:* (SO) The returned JSON code would also be correct, have used a checker (also see 3.) So why is

Retrieve javascript array object with C++ using DISPID_NEWENUM fails on IE9

ⅰ亾dé卋堺 提交于 2020-01-14 04:56:06
问题 following a similar question i answered some time ago, i found out that when trying to enumerate the object, using IDispatch::Invoke(DISPID_NEWENUM,...) fails with DISP_E_EXCEPTION on IE9. This happens with IDispatch and IDispatchEx , on any javascript array. needless to say that the code works great on IE6-IE8, and fails only on IE9. The same question also appears in the MSDN dev forums with no luck so far. Here's a code snippet to demonstrate what I tried to do. notice that pDispatch is the

IE9 reports missing semicolon that exists

☆樱花仙子☆ 提交于 2020-01-13 22:38:36
问题 I load some .js dynamically by creating a script tag and writing javascript to the .innerHTML of it. I get this error: SCRIPT1004: Expected ';' develop, line 1487 character 24 This makes no sense...so I'm guessing it is reporting the line number correctly or wrong all together (I'm at least happy it made it this far with out failing out....1487 is near the end of my code ). Firefox usually reports the correct line but it is always off by 1 line. I assumed IE9 would as well... How can I

IE9 reports missing semicolon that exists

萝らか妹 提交于 2020-01-13 22:35:59
问题 I load some .js dynamically by creating a script tag and writing javascript to the .innerHTML of it. I get this error: SCRIPT1004: Expected ';' develop, line 1487 character 24 This makes no sense...so I'm guessing it is reporting the line number correctly or wrong all together (I'm at least happy it made it this far with out failing out....1487 is near the end of my code ). Firefox usually reports the correct line but it is always off by 1 line. I assumed IE9 would as well... How can I

IE9 reports missing semicolon that exists

柔情痞子 提交于 2020-01-13 22:35:55
问题 I load some .js dynamically by creating a script tag and writing javascript to the .innerHTML of it. I get this error: SCRIPT1004: Expected ';' develop, line 1487 character 24 This makes no sense...so I'm guessing it is reporting the line number correctly or wrong all together (I'm at least happy it made it this far with out failing out....1487 is near the end of my code ). Firefox usually reports the correct line but it is always off by 1 line. I assumed IE9 would as well... How can I

<option selected = “selected”> issues in IE9 [duplicate]

ε祈祈猫儿з 提交于 2020-01-13 20:46:07
问题 This question already has answers here : How to change a <select> value from JavaScript (9 answers) Closed 6 years ago . I'm having issues with setting a default value in a dropdown menu in IE9. It seems to work on other browsers. All my searches yielded people trying to use JQuery to set that attribute. But I'm not using JQuery at all. Here's a sample: <select id="selectType" name="selectType"> <option label="1" selected="selected">1</option> <option label="2">2</option> <option label="3">3<

Anybody know why IE9 typeof console.log reports “object”, others report “function”?

大城市里の小女人 提交于 2020-01-13 11:08:14
问题 In Firefox/Chrome/others, typeof console.log reports "function". In IE9, (assuming the Developer Console is open, thus defining the window.console property), if you show the variable console.log in the developer console, shows function(...) { [native code] } yet it reports typeof console.log as 'object'. The standard says that functions are supposed to be reported as 'function'. Anybody know why this occurs? 回答1: It seems to be a bug in IE, as many (or all) console elements that should be

How can I get inline-block to render consistently when applied to table cells?

北城以北 提交于 2020-01-13 10:51:08
问题 I have a simple HTML table that I want to render consistently across every modern browser (IE9, latest FF, Chrome, Safari). If I apply widths and "display: inline-block" to just the table cells, FireFox 4 and Chrome will allow the table cells to 'wrap' into a second row, as if they were just regular inline-block elements. In IE9, however, the cells are treated like classic table cells, and do not maintain their widths and are scrunched into one row. Full example of the code is here: http:/

Execute certain javascript if browser lt ie9

亡梦爱人 提交于 2020-01-13 09:44:10
问题 I want to execute a certain code in jQuery if the browser is lower than IE9. And yes, i already know about <!--[if ... IE ]> <![endif]--> But what i want is to check this condition within the scipt tag and with jQuery document.ready <script> $(document).ready(function(){ //code to check if lt ie9 }); </script> 回答1: You can target older Internet Explorer versions (<= 9) through classes on the <html> element... <!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7"> <![endif]--> <!--[if IE 7]>

HTML table not rendering correctly in IE9

眉间皱痕 提交于 2020-01-13 09:06:32
问题 Really weird one, this. I'm using an asp:Repeater to create an HTML table, like so: Markup: <asp:Repeater ID="myRpt" runat="server"> <HeaderTemplate> <table id="myGrd" border="0" style="cursor:pointer;width:100%; background-color:white;" cellpadding="2" cellspacing="0"> <tbody> </HeaderTemplate> <ItemTemplate> <tr onclick="criteria.rowClicked(this);"> <td style="border:solid 1px black;"> <asp:Literal ID="lblName" runat="server"></asp:Literal> </td> <td style="border:solid 1px black;width