internet-explorer-9

Can't get Coded UI test runs to work with multiple tabs in IE 9

被刻印的时光 ゝ 提交于 2019-12-23 22:33:00
问题 I've been using Coded UI-Tests to test my company's web pages and I've run into this problem several times lately, unable to figure out a solution. What I'm trying to do is have a coded UI test click a link on one of the sites pages, which then opens up the link in a new tab. My issue is asserting that the new page is the right page, and has the right content in it. When I run the test it will do everything else fine, it opens the link in a new tab, but the test can't seem to see whats on the

How to suppress IE9 window.close() confirm message

☆樱花仙子☆ 提交于 2019-12-23 22:14:44
问题 After applying the window.close function IE9 raises the "The webpage you are viewing is trying to close ..." message. Is there a way to suppress this message without changing the application code, but by changing some IE-specific registry entries instead? 回答1: IE doesnt allow to close the window without confirmation if the window was not opened by script U can try this ... window.open('', '_self', ''); window.close(); 来源: https://stackoverflow.com/questions/8375679/how-to-suppress-ie9-window

IE9 table-layout fixed colspan not respected

浪子不回头ぞ 提交于 2019-12-23 19:47:49
问题 I found this topic, mine is related but not the same: Table rendering with cols and colspan on tds in IE9 The problem I am having is that the 2nd colspan=2 in my table is not being read by IE9, funnily enough it works find in IE7 and IE8, but not IE9. Maybe I've done something completely wrong so here it is: HTML: <table id="test"> <tbody> <tr> <td>COLSPAN = 1</td> <td colspan="2">COLSPAN = 2</td> <td>COLSPAN = 1</td> <td colspan="2">COLSPAN = 2</td> </tr> </tbody> </table> CSS: #test { width

IE9 doesn't allow dynamic style with PHP and content type text/css

依然范特西╮ 提交于 2019-12-23 15:43:33
问题 My plugin adds dynamic CSS to the frontpage: function form_css() { header( 'Content-Type: text/css' ); header( 'Expires: Thu, 31 Dec 2050 23:59:59 GMT' ); header( 'Pragma: cache' ); if ( false === ( $css = get_transient( 'mymail_form_css' ) ) ) { // generate CSS here set_transient( 'mymail_form_css', $css ); } echo $css; die(); } add two action hooks: add_action('wp_ajax_my_css', 'form_css'); add_action('wp_ajax_nopriv_my_css', 'form_css'); and enqueue the style: wp_register_style('my-css',

Downloading PDF as Blob with JS in IE9

你离开我真会死。 提交于 2019-12-23 12:57:56
问题 I have a blob and want to download it. It works for Chrome, Firefox, IE10 and higher. The problem is IE9. var isIE = /*@cc_on!@*/false || !!document.documentMode; var blob = new Blob([data], {type: "application/pdf"}); if (isIE) { window.navigator.msSaveOrOpenBlob(blob, "Download.pdf"); } else { var link = document.createElement('a'); link.href = window.URL.createObjectURL(blob); link.download = "Download.pdf"; link.id = "TEST"; $('body').append(link); document.getElementById("TEST").click();

Cookies cannot be set in IE?

孤者浪人 提交于 2019-12-23 11:39:13
问题 I have the following code in website1.com: <script type="text/javascript"> document.cookie = "qwe=1"; alert(document.cookie); </script> and website2.com contains: <iframe src="http://website1.com"></iframe> When I open the page website2.com in IE it alerts empty string (if no cookies was set before). Other browsers alert "qwe=1". So the question is why and how to workaround this? 回答1: It is about security in IE. If you want allow access to cookies in IFRAME, you should set HTTP header as

How to enable loading local file using ajax in IE9

无人久伴 提交于 2019-12-23 09:43:51
问题 I know there is the origin problem, but setting up a web server is not an option here. Firefox v14 has no problem loading a local file. Chrome has no problem after adding '--allow-file-access-from-files' Is there any way to fix also IE9? Thank you Edit: I figured out the solution. Just use ActiveXObject("MSXML2.XMLHTTP.6.0") instead of XMLHttpRequest() for IE9 to overcome the local file access deny problem. 回答1: Ajax or not. HTTP is a client-server application protocol. Without a server, that

RequireJS not working in IE9

梦想的初衷 提交于 2019-12-23 09:34:33
问题 I'm experiencing a fairly peculiar behavior - my RequireJS modules seem to be not initializing and running at all under IE9: <head> ... <script data-main="/static/js/main" src="/static/js/libs/require.js"></script> // Seems to be not running at all. </head> However, whenever I fire up IE9's developer tool, and reload the page , the modules will be running fine just as they should in Firefox/Chrome/Safari/etc. Cleaning browser cache and closing the developer tool in IE9 will render the

Scale down (but not up) images using CSS to fit div container in IE9 (max-width: 100% fix)

会有一股神秘感。 提交于 2019-12-23 07:54:37
问题 I cannot use JS, this should be archived by CSS only. Container (DIV) is auto width (flexible) "table-cell" element. I'd want to scale image down only when it width is larger than container (user can resize window - that's the reason). I've used code shown below but it work only on IE7. max-width: 100%; height: auto; width: auto\9; I've tried to find any working fix for IE9, but without success. 回答1: Your max-width needs to be set to the image size and then width to 100% like so: img { width:

Step 4 in one page checkout for magento not working in IE 9

泪湿孤枕 提交于 2019-12-23 03:12:32
问题 I already tried forcing compatibility mode to IE8 and it does not seem to work. Seems like steps 1-3 work fine but then when I got to select credit card info, nothing responds to my clicks... the cardtype does not drop down a selection and none of the inputs are selectable. Has anyone seen this? 回答1: We had this problem and forcing IE8 compatibility as described in my answer to this question fixed it. Of note, the position of the meta tag at the top of the head is important. The other way