internet-explorer-6

IE 6 and the multiple button elements all sending their name & values

别说谁变了你拦得住时间么 提交于 2019-12-01 09:47:52
When using multiple button elements in a form, I realised that IE7 sends the innerHTML instead of the value of the button. All good I thought, I'll simply change my PHP code to this <?php if (isset($_POST['button-name'])) { add_product_to_cart(2); } ?> Now my old friend IE6 is going a little step further at being a nuisance. It sends all of the button elements regardless of which one I click. For example, I have 3 button elements named 'mint', 'near-mint' & 'standard'. A quick print_r($_POST) tells me that all 3 names have been submitted. I guess to remedy this will be some JavaScript, not the

jQuery detect IE6 using jQuery.support NOT jQuery.browser

匆匆过客 提交于 2019-12-01 09:31:58
问题 I have found no definite way to detect IE6 using jquery.support instead of jquery.browser which is not supported anymore. Also I need to account for Quirks mode, Ugh!!! I have seen a couple of posts on Stack but they all refer to jquery.browser and the documentation for jquery.support is a little vague. Any help on this would be great and thanks in advance. 回答1: I think that the authors of jQuery simple don't want developers to check for which browser is running the application/website

IE 6 and the multiple button elements all sending their name & values

随声附和 提交于 2019-12-01 09:21:18
问题 When using multiple button elements in a form, I realised that IE7 sends the innerHTML instead of the value of the button. All good I thought, I'll simply change my PHP code to this <?php if (isset($_POST['button-name'])) { add_product_to_cart(2); } ?> Now my old friend IE6 is going a little step further at being a nuisance. It sends all of the button elements regardless of which one I click. For example, I have 3 button elements named 'mint', 'near-mint' & 'standard'. A quick print_r($_POST)

How to make document.querySelector work in IE6

别等时光非礼了梦想. 提交于 2019-12-01 08:04:13
I work on a website and I got a javascript function that doesn't work in Internet Explorer 6. I know document.querySelector(selector) only work in Internet Explorer 8+ What could I do to make it work in IE6? (I don't try to make it work for the fun of it ;) ) T.J. Crowder I strongly encourage you not to try to support IE6 any longer. But you can add document.querySelector and document.querySelectorAll using this very clever trick from an Ajaxian article . The article actually gets it a bit wrong, it adds something called querySelector that does querySelectorAll instead. I've fixed the name

How to make document.querySelector work in IE6

情到浓时终转凉″ 提交于 2019-12-01 07:24:45
问题 I work on a website and I got a javascript function that doesn't work in Internet Explorer 6. I know document.querySelector(selector) only work in Internet Explorer 8+ What could I do to make it work in IE6? (I don't try to make it work for the fun of it ;) ) 回答1: I strongly encourage you not to try to support IE6 any longer. But you can add document.querySelector and document.querySelectorAll using this very clever trick from an Ajaxian article. The article actually gets it a bit wrong, it

Vertical Centering a block <a> in IE7

喜夏-厌秋 提交于 2019-12-01 06:53:23
I'm trying to get vertical centering a block in IE7 (IE6 if possible too), let me get one thing clear - I'm not vertically centering the actual element, but the text within the element. This is my CSS and HTML which works on IE8 and above, but not below. a { display: table-cell; width: 100px; height: 54px; background: black; color: white; text-align: center; text-decoration: none; vertical-align: middle; } <a href="#">Hello superlongword</a> Now I know IE6 is virtually dead, I'd still like to support it if possible but if not then IE7 is fine. I want to try keep it with a single element as

How to make css max width in IE6 and 7?

℡╲_俬逩灬. 提交于 2019-12-01 06:20:06
I use this css code in my website: img { max-height: 800px; max-width: 600px; } Unfortunately, it doesn't work with IE 6 and 7. How can I solve it? Thanks in advance. Snger The max-height property is supported in IE7: http://www.w3schools.com/cssref/pr_dim_max-height.asp , and you can use IE7 test it by this link . IE6 and earlier versions do not support the max-height property. But you can use CSS to hack it: img { max-height: 800px; _height:expression(this.scrollHeight > 800 ? "800px" : "auto"); /* sets max-height for IE6 */ max-width: 600px; _width:expression(this.scrollWidth > 600 ? "600px

Vertical Centering a block <a> in IE7

左心房为你撑大大i 提交于 2019-12-01 05:26:24
问题 I'm trying to get vertical centering a block in IE7 (IE6 if possible too), let me get one thing clear - I'm not vertically centering the actual element, but the text within the element. This is my CSS and HTML which works on IE8 and above, but not below. a { display: table-cell; width: 100px; height: 54px; background: black; color: white; text-align: center; text-decoration: none; vertical-align: middle; } <a href="#">Hello superlongword</a> Now I know IE6 is virtually dead, I'd still like to

IE6 and IE7 Standalone: What do they render differently? [closed]

核能气质少年 提交于 2019-12-01 05:25:42
It's common knowledge on SO (see this question ) that to run IE6 and IE7 you need a Windows box (or virtual box) with only those apps installed. I doubt this is true (they are the real versions, I think). The two browsers I'm interested in are: Standalone IE6 from the MultipleIEs install Standalone IE7 also from Tredosoft (but published elsewhere) These two plus a "real" install of IE8 give you three IE versions in one Windows install. We all know that "You're out of luck if you're trying to run them all reliably in one VM," but can someone please show me JS, CSS, or HTML (or a plugin, etc.)

Disable GZIP compression for IE6 clients

允我心安 提交于 2019-12-01 05:12:51
We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs browser for 5min) in few pages of larger site. Server is IIS7 and has compression for static content turned on - want that compression left working if user agent is not Mozilla/4.0. ASPX code sample anyone? Alternatively, code to conditionally redirect to the same page on another site (could create another virtual site with compression disabled) but need to pass all parameters (GET/POST). Check out this page . I believe ISAPI rewrite is available for IIS as well. Basically, it takes the browser's request and