internet-explorer-8

Cloning background image with parenthesis in file name

為{幸葍}努か 提交于 2019-12-10 21:42:46
问题 I have a background image with a parenthesis in the filename: <DIV style="BACKGROUND: url('http://site.com/image(8).png');"></DIV> This is fine normally, and there is no confusion because there are quotes around the file name. Looking in IE's developer tools however, I see that the browser stripped the quotes for some reason. <DIV style="BACKGROUND: url(http://site.com/image(8).png);"></DIV> Still, it works, so not a big deal. The problem comes when I try to use jquery's clone function.

CSS selector :active not working on child element click in IE8

混江龙づ霸主 提交于 2019-12-10 21:17:01
问题 I have the following HTML structure: <div id="ctr__Wrapper" class="wrapper"> <div id="ctr" class="control clickable"> <img src="logo.png"> </div> </div> And the following CSS for this: .control { border: 1px solid #000; background-color: #666; padding: 20px; } .control:active { background-color: #bbb; } When I click on the element "ctr", I see the background color changing, but when I click on the image itself, it doesn't. This works fine in Firefox, but not in IE8. Is there something I can

Adding multiple VML elements via JavaScript in IE8

前提是你 提交于 2019-12-10 21:00:21
问题 Working with IE 8, I am attempting to add two VML ovals (A,B) to my page, through javascript. Whichever oval is appended to the parent DIV is rendered, but I the second is not. If I appendChild(A) then appendChild(B), Oval A is rendered, B is not. If I appendChild(B) then appendChild(A), Oval B is rendered, A is not. document.namespaces.add("v","urn:schemas-microsoft-com:vml"); this.container = Document.getElementById(mydiv); var grid2 = document.createElement("v:oval"); grid2.style.left=

Text-alignment of generated content in Internet Explorer 8

独自空忆成欢 提交于 2019-12-10 20:43:34
问题 I'm debugging this site and trying to sort out some issues that arise in Internet Explorer (big surprise). I'm adding a sub-title to several links as follows: .subtitle a:after { content:"The Subtitle Here"; } On all modern browsers (and IE9) the content is center aligned because the container uses text-align:center; . However, in IE8 "The Subtitle Here" is flushed left. Is there any way to control that with CSS? Thanks. 回答1: Turns out you can do it easily: I added another style rule that

IE8: The option tag gets a “selected” attribute by default (And cloneNode makes a mess of it)

≯℡__Kan透↙ 提交于 2019-12-10 20:42:37
问题 IE seems to add automatically a "selected" attribute on the option tag. But then if you cloneNode it, things get weird. If you open a page in IE8 with the code below: <html> <body> <form><select><option>o1</option></select></form> <script> // without clone node var elm = document.getElementsByTagName('form')[0]; alert(elm.innerHTML); // using the form as the root to clone elm = document.getElementsByTagName('form')[0].cloneNode(true); alert(elm.innerHTML); // using the select as the root to

Codeigniter - cookies do not work in internet explorer 8

筅森魡賤 提交于 2019-12-10 19:55:15
问题 This code works in all browsers except Internet Explorer 8 $this->input->set_cookie(array( 'name' => 'test_cookie', 'value' => 'hello from cookie', 'expire' => 360000000, 'secure' => FALSE )); echo get_cookie('test_cookie'); How to solve this problem? Why does not set_cookie? 回答1: try: echo $this->input->cookie('test_cookie'); 回答2: I had a similar issue where only IE would refuse to accept a cookie. Turned out the computer's time zone wasn't set correctly (it was 17 hours ahead in the future,

ScrollTop in IE8 returning 0

北城以北 提交于 2019-12-10 19:28:27
问题 I've been looking this morning for an answers to my problem with getting the location of the window in IE8 to create a back to top button in IE8 with fade-in functionality. Things that didn't work and returned zero in IE8: window.pageYOffset $(window).scrollTop() $(document).scrollTop() $(this).scrollTop() This is my code before my fix when it's only working for IE9+ & FF & Chrome var offset = 220; var duration = 500; jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > offset) {

how to know if an object is an Html document using javascript

十年热恋 提交于 2019-12-10 19:05:17
问题 I'm passing an object say, obj , to a function. obj could possibly of any type - (TemplatedHelper, AlertMessage, PartialViews, HTMLDocument, etc.) I want to know if obj is an HTML Document. What are the possible ways to achieve it? I have tried using var containerCount = $(obj).length; for (var ctr = 0; ctr < containerCount; ctr++) { var containerTagName = $(obj)[ctr].tagName; alert(containerTagName); // to know all detected tagNames // this returns LINK, SCRIPT, DIV, INPUT, etc.. if (

Strange scrolling behavior in IE with checkboxes in a scrollable div

北城以北 提交于 2019-12-10 18:45:07
问题 I have a "multiselect" control that looks like this (sorry for the long id names, they are kinda autogenerated because this whole thing is being generated by a custom tag): <div class="default-skin-outer" id="myMapSelect_multiSelectOuterDiv"> <div class="default-control" id="myMapSelect_multiSelectControlDiv"> <span class="default-icon-check-text" id="myMapSelect_multiSelectControlCheckWrapperSpan"> <span class="default-icon default-icon-check" id="myMapSelect_multiSelectControlCheckIconSpan"

wmd-editor breaks in IE8

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 18:25:37
问题 We have recently started using WMD editor and found that in IE 8, it just goes on increasing the scroll size of the page by simply increasing the size of the textarea endlessly. The only option left is to close the browser after that causing lot of frustration. you can check wmd-editor demo here. does anybody know of any solution to this issue ? 回答1: after a lot of trial & error, we finally found the issue and fixed it ourselves. None of the parent container of the div in which the wmd editor