internet-explorer-8

Why does IE8 fail to resolve my JQuery selector for a checked radio option?

我与影子孤独终老i 提交于 2019-12-24 04:55:13
问题 This following line works as expected in Firefox but IE returns 'undefined'. var selectedChoice = $("input[name='my.test[0].SelectedOption']:checked", '#myForm').val(); Here is a standalone sample that you can run... Note the problem seems to be the use of '.' and '[]' in the name of the radio element. However this is how ASP.NET MVC renders them. Here is an example which works fine in Firefox but fails in IE. <html> <head> <title>Testing radio selection jquery in IE 8</title> <script src=

What part of this RegEx is causing it to find no matches in IE7 and IE8?

我只是一个虾纸丫 提交于 2019-12-24 04:06:23
问题 I've got a regex that looks for a <span> with the class name foobar . It works in IE9, Chrome and Firefox. It's failing in IE7 and IE8. Can anyone tell me why? new RegExp( /(\s*?)<span\b(?:.*?)(?:class=(?:'|"|.*?\s)?foobar(?:\s|\3))(?:.*?)(?:\/)?>(.+?)<\/span>(\s*?)/g ) 回答1: If you're applying the regex against html you got from getElementById().innerHTML or jQuery .html(), IE will uppercase the HTML tags which could be the problem. If you make the regex case-insensitive - that is, change the

CSS3 On IE8 Odd even row by different color

久未见 提交于 2019-12-24 03:54:25
问题 I Am Having Css code for differentiating odd and even row by different color .historyLog tr:nth-child(odd) td { background-color:blue; } .historyLog tr.odd td{ background-color: blue; } ​ .historyLog tr:nth-child(even) td { background-color:orange; } .historyLog tr.even td{ background-color: orange; } And having table with class .historyLog <table class="historyLog"> <tr><td></td></tr> <tr><td></td></tr> </table> Problem with me is that when I apply Css using the class attribute .historyLog i

Prevent text selection when dragging from outside target in IE7/8

回眸只為那壹抹淺笑 提交于 2019-12-24 03:35:12
问题 It has been discussed how to disable text from being selected: How to disable text selection highlighting using CSS? However, I have yet to find a solution that blocks the user from selecting text when dragging from outside the intended target. I'm looking for a solution that works in IE 7/8. Any ideas? 回答1: The IE8- onselectstart event and unselectable attribute solutions have already been discussed. The CSS solution has been published as well. Here is the gist: <!-- save this file as

Javascript function works in FF, Opera etc, fails in IE8 - how to fix

扶醉桌前 提交于 2019-12-24 03:26:05
问题 I have the following function (worked in IE6 but is broken in IE8) function implode() { var str = ''; for(item in globvars) //<- IE8 wets itself here ... str+= '\n' + globvars[item]+';'; return str+'\n'; } It seems an innocuous little function, but IE8 dosent grok it. Can anyone show me how to rewrite this so it work in IE8 (as well as the other browsers)? [Edit] At the begining of the script (i.e. first line after the tag, I have defined the globvars like this: var globvars = new Array(); //

jquery ie8 get text value = Object doesn't support this property or method

拟墨画扇 提交于 2019-12-24 03:24:30
问题 I have two span tags inside two divs inside a master div <div> <div> <span id="spanA">start text</span> </div> <div> <span id="spanB">start text two</span> </div> <div> I use jquery 1.7.2 and am trying to get the default text value on the page load for span a & b, then onclick change the value of span a & b and then on toggle change them back. On FF/chrome this works fine but ie8 is throwing an error Object doesn't support this property or method onload spanAval = $('#spanA').text(); spanBval

Draggable element in VML get stuck when size change (height, width) in IE 8

馋奶兔 提交于 2019-12-24 02:56:14
问题 I'm having issue with VML (wich I use as fallback for svg) I use jQuery UI draggable to let user be able to move an element around. The problem occurs when I resize the image (wich is a v:image) by changing the style attribute of height and width. What happen at this point is that the element get stuck at the left top corner of it's container and cannot be dragged anymore. A strange thing is that when I ask for the position (top, left) of the draggable element in the javascript console, I get

IE ignoring conditional comment when I use server name

北慕城南 提交于 2019-12-24 02:42:24
问题 I have a web page with the following code in it: <!--[if IE 8]> Welcome to IE 8 <![endif]--> I am logged onto the server, and if I hit the page in IE 8 via the URL http://localhost/login I see the message. However, if I use the URL http://myserver/login (where myserver is the Windows name of the server I am logged into), the page displays and functions normally, except that the message is not displayed. If I do a View Source, I see the code as I expect it -- the comment displays in the source

HTML image tag with base64 string (data URI)

[亡魂溺海] 提交于 2019-12-24 01:52:37
问题 I get binary data of jpeg images from a series of httprequests about every 50-200 ms, I convert this data to a base64 string and insert the string in the img tag with javascript. var img = document.getElementById('img1'); img.src = 'data:image/jpeg;base64,' + b64str + ''; So when receiving greater pics, I experience that the image (first displayed fully) after some seconds get cut down from the bottom more and more until it reaches a certain point. I searched a bit and found Internet Explorer

fadeIn / fadeOut jquery problem with IE7/8 & png

∥☆過路亽.° 提交于 2019-12-24 01:45:33
问题 Hey guys, I am trying to make a magnifying glass background when the use hovers over an image that can be enlarged. This is using a blank span and setting its display to none until it is hovered, and having its background be a semi-transparent png with a magnifying glass in the center. This is done using fadeIn / fadeOut and works perfectly in all of the other browsers besides IE. In IE, the background of the image flashes to dark gray before fading to the correct image on hover and hover out