internet-explorer

Script error only in ie10 / works perfect in all other browsers

本秂侑毒 提交于 2020-01-16 10:12:01
问题 I use the following script to replace dropdowns into regular links. This works perfectly in firefox, chrome, safari and ie11 but does not work in ie10 and below. The script: function replaceDropDowns() { jQuery('.product_attribute_option_link').remove(); jQuery('#selected_combination').text(''); jQuery(".super-attribute-select").each(function() { var drop_down = jQuery(this); drop_down.hide(); drop_down.find("option[value!='']").each(function() { var option = jQuery(this); jQuery("<a>", {

Script error only in ie10 / works perfect in all other browsers

不羁的心 提交于 2020-01-16 10:11:28
问题 I use the following script to replace dropdowns into regular links. This works perfectly in firefox, chrome, safari and ie11 but does not work in ie10 and below. The script: function replaceDropDowns() { jQuery('.product_attribute_option_link').remove(); jQuery('#selected_combination').text(''); jQuery(".super-attribute-select").each(function() { var drop_down = jQuery(this); drop_down.hide(); drop_down.find("option[value!='']").each(function() { var option = jQuery(this); jQuery("<a>", {

Only the left half of the button is clickable in IE

旧时模样 提交于 2020-01-16 06:38:28
问题 I have a code for a button in my HTML, and the button is working fine in Chrome and Firefox, however in Internet Explorer (10), only half the button is clickable! <input type="button" value="Submit" data-ng-if="Ctrl.diaplay" data-ng-click="Ctrl.reload('custom')" class="submit__button"> I don't know how to explain what is happening better, but in IE, if you hover near the left edge of the button, it is clickable, however when you hover near the right edge, the button is not clickable. 来源:

Line break before and after inline contenteditable element in IE

半腔热情 提交于 2020-01-16 05:31:13
问题 I need to make inline element contenteditable . It works fine for Chrome/Firefox, but IE (11 at least) inserts line break before and after span if it's contenteditable . Link to fiddle: https://jsfiddle.net/nokpy02g/1/ This is how it looks like in Chrome: And this is IE: Is there is any way to fix it? UPD: My IE version: IE mode on my fiddle page: Also, I am using Windows 7 Professional, 64bit 回答1: Be aware: contentEditable is extremely buggy and inconsistent across all browsers and even

Force refresh of browser-cache for HTML document

隐身守侯 提交于 2020-01-16 04:10:09
问题 A website was accidentally cached in the browser for about a month with Expires and max-age headers set. The cached resource is text/html and the root / . The freshness validation should work as expected with the If-Modified-Since header in the next request. But somehow a lot of IE users (incl. IE11) don't get the new version anymore, as the browser doesn't make the request. It's easy to bust the cache for resources like CSS, but how to do this for the document/website itself? I can not just

parseInt behaving different in IE and chrome [duplicate]

隐身守侯 提交于 2020-01-16 03:50:10
问题 This question already has answers here : How to parseInt a string with leading 0 (6 answers) Closed 5 years ago . i have parseInt function. for 010 as input : output in IE : 8 output in chrome and firefox: 10 for 099 as input: output in IE : 0 output in chrome and firefox: 99 Could someone plz help me understand this different behaviour in the browsers.. issue is in IE and it is working as expected in chrome and firefox. Thanks in advance. 回答1: Actually I would argue IE is doing things

zoom css style is not applied to positioned absolute div element and it's children in IE

隐身守侯 提交于 2020-01-16 03:13:08
问题 Below is html code for testing. In other browser, all 3-divs are scale down by 0.5. However in IE(including IE9), absolutely positioned div(second-depth div) and it's child div(third-depth div) is not scale down properly. How do I apply zoom style for all divs properly? <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body style="zoom:0.5"> <div style="width:400px;height

Set number of options shown in a <select multiple> element to less than 4

馋奶兔 提交于 2020-01-15 18:49:42
问题 < select size="2" multiple> < option value="1">1< /option> < option value="2">2< /option> < option value="3">3< /option> < option value="4">4< /option> < option value="5">5< /option> < option value="6">6< /option> < option value="7">7< /option> < option value="8">8< /option> < option value="9">9< /option> < option value="10">10< /option> < option value="11">11< /option> < option value="12">12< /option> < option value="13">13< /option> < /select> size attribute of Select tag is not working

Stop Event in IE 9 (without upgrading to Prototype 1.7)

和自甴很熟 提交于 2020-01-15 15:14:49
问题 The site I'm working on uses Prototype 1.6.1. Its Event.stop() doesn't work in IE9. I know that Prototype 1.7 fixes the problem. However, is there a walk-around if I cannot upgrade to Prototype 1.7? I need the site to be compatible with IE 7, 8 and 9 (as well as Chrome, Firefox, etc). Thanks! EDIT: I tried event.preventDefault() and it doesn't work for me in IE 9. Here is an example: http://jsfiddle.net/garthcn/AdR7g/ It works in jsfiddle/Chrome/Firefox. If you paste the code to an HTML file

Stop Event in IE 9 (without upgrading to Prototype 1.7)

对着背影说爱祢 提交于 2020-01-15 15:11:48
问题 The site I'm working on uses Prototype 1.6.1. Its Event.stop() doesn't work in IE9. I know that Prototype 1.7 fixes the problem. However, is there a walk-around if I cannot upgrade to Prototype 1.7? I need the site to be compatible with IE 7, 8 and 9 (as well as Chrome, Firefox, etc). Thanks! EDIT: I tried event.preventDefault() and it doesn't work for me in IE 9. Here is an example: http://jsfiddle.net/garthcn/AdR7g/ It works in jsfiddle/Chrome/Firefox. If you paste the code to an HTML file