internet-explorer-8

In IE 8 dates are NaN/Nan/Nan

倾然丶 夕夏残阳落幕 提交于 2019-12-24 22:06:56
问题 In IE8 my dates are not appearing properly. I have tried many implementations but they are not working properly. Here is what I had originally that works in FF, Chrome and IE9. var date = TranslateDate(new Date(CreatedDate); where CreatedDate is a c# datetime object. function TranslateDate(d) { return GetMonth(d) + '/' + GetDay(d) + '/' + d.getFullYear(); } function GetMonth(d) { var month = d.getMonth() + 1; return (('' + month).length < 2 ? '0' : '') + month; } function GetDay(d) { var day

IE8 Javascript document.domain error

狂风中的少年 提交于 2019-12-24 17:15:37
问题 I need to change the domain of the document and then set it back again to the original value. It looks something like this [the page is on domain base.site.com]: function execute () { document.domain = "site.com"; // Access an object that is on another frame, but did the same set of the domain document.domain = "base.site.com"; // Access an object that is on this page (window.createPopup ()) } The problem is that this works fine on IE6 (I did not test on 7). But it gives me an error [Invalid

IE gradient filter background overriding active background color

流过昼夜 提交于 2019-12-24 16:16:28
问题 I am styling a div that uses jQuery to add a .active class to the div when selected. The background of the div is a gradient, which I would like to keep. I am using the filter: property to display the gradient in IE. The active class modifies the background to a solid color, but in IE, the filter: CSS property overrides the .active styling. Is there a solution to this, so the .active class will display the correct background color in IE? See this example: http://jsbin.com/eDEjuzu/1/ Thanks

unattainable item in dropdown menu ie8

懵懂的女人 提交于 2019-12-24 15:36:43
问题 the page : http://medisra.sideradesign.com/ on the second menu from the left, there is a dropdown. I am not able to click on the last 3 items of the submenu because they disappear before I get a chance. it seems it has something to do with the position of the menu. for example, if I increase the height of the header container, I'm able to click the menu items. any help appreciated thanks Paul 回答1: The most direct reason for this problem is that the page is being set to render in IE7 mode via

php database session handling in IE8

落花浮王杯 提交于 2019-12-24 14:27:45
问题 I've got an html page from where Im making this call periodically: function logon(id) { $.get("data.php", { action: 'online', userID: id}, function(data){ $("#msg").html(data); }); } What this does is it calls this SQL script in data.php: $sql = "update user_sessions set expires=(expires + 2) where userID = $userID"; mysql_query($sql, $conn) or die(mysql_error()); echo $sql; I can see by the echo that the sql syntax and values are correct, but THE CHANGES TO THE expires FIELD ARE NOT DONE,

Google maps .setMap issue for IE8

跟風遠走 提交于 2019-12-24 12:51:09
问题 So I've got a bit of a problem here. This script works fine in all browsers apart from IE8 The route() function is called - and is given a Google maps encoded polygon and polyline. The script breaks every time IE8 tries to do setMap I'm thinking the issue is something to do with map being out of its scope? Or a trailing comma error? I just spent the last few hours playing with thisand I couldn't fix it. Any ideas?? Much appreciated. Dont normally like to paste the whole code as it's a bit

jQuery AJAX GET html data IE8 not working

≡放荡痞女 提交于 2019-12-24 11:51:45
问题 This is the code but it's not working on IE8 & 7 (IE9 , chrome,firefox, safari,opera are all ok). I have tried a lot of things (meta utf-8 code, php header code, taking alerts, cache:false).What can i do , i need help. Thanks for your interests. var request = $.ajax({ type:"GET", url: "_veri.php?t=icerik_getir&id="+tabopen, dataType: "html", }); request.done(function(msg) { $(".tab-contentmenu").html(msg); }); EDIT: alert gives me the data of requested in all browsers but still no requested

Strange rendering issue occurring in IE8 only

泪湿孤枕 提交于 2019-12-24 11:28:39
问题 I'm having some strange rendering issues that are occurring only on IE8, not IE7, 6, or any of the other browsers I've tested (ff, chrome, opera mostly). http://www.sealymattressonline.co.uk/Shop/Sealy-Silver-Collection-C246/ in IE8 scroll down to the bottom of that page (or indeed any of the other category links from the left sidebar) and on the first pageload there is an un-explained whitespace gap on random products (see http://plixi.com/p/92068948) All I need to do is highlight/select the

Issues with negative z-index in IE8

假装没事ソ 提交于 2019-12-24 11:19:03
问题 I am using two pseudo elements to create a banner effect on a div, like so: div { position: relative; width: 200px; background-color: #999; } div:before, div:after { content: ""; width: 10px; height: 0; display: block; position: absolute; z-index: -1; top: 10px; border-top: 10px solid #666; border-bottom: 10px solid #666; } div:before { right: -20px; border-right: 10px solid transparent; border-left: 10px solid #333; } div:after { left: -20px; border-left: 10px solid transparent; border-right

Why can't Internet Explorer run this simple jQuery?

坚强是说给别人听的谎言 提交于 2019-12-24 11:08:33
问题 I'm running a really simple jQuery script to grab all emails selected by checkboxes in a table. The table looks like this: <table> <tbody> <tr> <td> <input type="checkbox" value="MD5HASH" /> </td> <td> First Name </td> <td class="email"> Email Address </td> </tr> </tbody> </table> My jQuery looks like this: $("#submitButton").click(function() { var output = []; $("table tbody tr:has(input:checkbox:checked)").each(function() { var email = $('td.email', $(this)).text(); if (validate(email) &&