internet-explorer-8

Detecting IE browser version using PHP

时间秒杀一切 提交于 2019-12-10 18:19:20
问题 I'm using $_SERVER['HTTP_USER_AGENT'] to detect user's browser. When I run the var_dump on my localhost on IE8 it returns: ...compatible; MSIE 8.0; ... But when I upload it to my host (godaddy), I get: ...compatible; MSIE 7.0; ... What's the problem? 回答1: Check for the word TRIDENT in the string. The compatibility-thing is ie in compatibility-mode. Google it if you want to know what it means. However, the term trident is only ie8+. Edit: Also, you can set a headder/meta-tag to force ie8-mode

Select element and jQuery CHANGE event in IE8?

扶醉桌前 提交于 2019-12-10 17:33:50
问题 I have a small script on my site that calculates a price quote based on the options chosen in 4 different Select elements. The price quote is written into a div and is updated each time there is any change in the selected options. Here is the link to this page: http://www.justaddsolutions.com/justaddwebsite/prices/ I used jQuery CHANGE event handler to trigger the calculating function each time there is a change in my Select elements, like this: jQuery("#pages").change(price_quoter); And here

IE 8: remove node keep children

蓝咒 提交于 2019-12-10 16:39:53
问题 I am trying to remove a node from the dom tree using javascript while keeping it's children. I tested the 3 approaches shown below and they work fine in Firefox but do not in IE 8 (see example below). function removeNodeKeepChildren(node){ // approach 1 jQuery(node.parentNode).children().map(function (index) { jQuery(this).replaceWith(jQuery(this).contents()); }); // approach 2 // doesn't work with content() either jQuery(node.parentNode).html(jQuery(node).html()); // approach 3 var

Check if IE8 with pure Javascript [duplicate]

只谈情不闲聊 提交于 2019-12-10 16:38:05
问题 This question already has answers here : Detect IE version (prior to v9) in JavaScript (37 answers) Closed 5 years ago . I used to check it this way: $.browser.msie && $.browser.version == 8 But it seems that $.browser has been removed from the later versinos of jQuery, So, How can I check that with just pure javascript? I tried: isIE8: navigator.appVersion.indexOf("MSIE 8") > 0 Wich seems to Do it, but it doesn't look that good and actually looks like it have many flaws... Any better aproach

IE 8 Canvas using excanvas polyfill: no errors, but animation is not running on IE 8

ぐ巨炮叔叔 提交于 2019-12-10 16:34:32
问题 I have an animation using canvas that is working fine in Chrome. I am using the excanvas polyfill for IE 8 support. I attached excanvas using an IE conditional tag in the head, as per the excanvas instructions. Working page here | Full code on Github The simplified HTML: <head> <meta charset="utf-8"> <!--[if gte IE 9]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> <!--[if lt IE 9]><meta http-equiv="X-UA-Compatible" content="IE=7" /><![endif]--> <link rel=

jquery validate 1.8.1 “jQuery” is undefined error IE8

走远了吗. 提交于 2019-12-10 16:32:17
问题 First off - yes - jQuery is being loaded before the validate plugin or any other js files. Getting 'jQuery' is undefined - jquery.validate-1.8.1.min.js line 13 character 1 in IE8. FF, Chrome & Safari all validate the form perfectly fine. <title>app title</title> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script> <script src="path_to_file/jquery.validate-1.8.1.min.js"></script> // CSS and other scripts are here // </head> <body> The above is included from a

Why DHTML behavior not work in IE8 if document.write is executed in <head>?

你离开我真会死。 提交于 2019-12-10 16:15:52
问题 We have a 3rd party web application which works on in IE6, but not works in IE8. The sample code is like below, the "message from .htc" message will popup in IE6, but not popup in IE8. test.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> <script type='text/javascript'> //if comment the following line, or move this script in <body>, //then HTC will work in IE8 document.write ("<h1>document.write() in <head></h1> some

IFrame causing back button issues

♀尐吖头ヾ 提交于 2019-12-10 15:56:24
问题 I am currently having an issue with IE8/7 (I do not have a choice, I have to add support for these before anyone moans) where IFrames with youtube videos are causing an issue with adding extra URLs into the history so when hitting back I am having to do it 2-3 times before actually getting to go back, my current solution seems to work in newer browsers but not the two I am having an issue with, current solution is: <script type="text/javascript"> $(document).ready(function () { $("iframe")

JQuery Validation doesn't work in IE8

假装没事ソ 提交于 2019-12-10 15:17:00
问题 I used a JQuery Validation script for validating an HTML Form. This worked perfectly in Firefox but doesn't work in IE8. I think there is issue with colon(;) or semi-colon(,)... but I am unable to catch it. jQuery.validator.addMethod("selectNone", function (value, element) { if (element.value == "") { return false; } else return true; }, "Please select an option."); $(document).ready(function () { $("#formElem").validate({ rules: { Category: { // "required",simple rule, converted to {required

IE 8 Caching Problem

元气小坏坏 提交于 2019-12-10 15:06:30
问题 One of my javascript sources had an extra comma that was throwing an error in IE8. So I opened up my editor, deleted the comma, and saved. I reloaded IE8, but it was still pulling the old js file. I deleted everything in "Delete Browsing History...", and restarted the browser. It is still pulling the old file. I even set up a log on my server to show whenever the js file was requested. When reloading with IE, the js file is never requested. I tried doing the same process in Chrome and FF, and