internet-explorer-7

jQuery .ajax method in IE7 & IE6 not working but working fine in Firefox

折月煮酒 提交于 2019-11-28 00:28:10
This relates to my previous post: jQuery .load Method causing page refresh AJAX I changed my implmentation to use the .ajax method instead of .load and it works fine in Firefox but not in IE7 or IE6: $('ul#coverTabs > li > a').live('click', function(event) { // Find href of current tab var $tabValue = $(this).attr('href'); $.ajax({ type: "GET", cache: false, dataType: "html", url: $(this).attr('href'), success: function(data){ $(data).find('.benefitWrap').each(function(){ var $benefitWrap = $(this).html(); $('.benefitWrap').replaceWith($('<div class="benefitWrap">' + $benefitWrap + '</div>'));

Node.TEXT_NODE and IE7

佐手、 提交于 2019-11-27 23:38:54
I've some javascript that tests DOM node types against like this: if(node.nodeType == Node.TEXT_NODE) { Of course, it all works fine in Firefox, Safari, and Opera. But Internet Explorer 7 is complaining that Node (with the capital N) is undefined. But that's part of DOM Level 2 ! Do I really need to change my code to use magic numbers? Or am I missing something simple here? Unfortunately you are not missing anything. There is no Node constant in IE. Look here http://www.ibm.com/developerworks/xml/library/x-matters41.html at section "What else can you do with the DOM?". So either you define

background gradients in IE7 with CSS

佐手、 提交于 2019-11-27 22:20:46
问题 I am using the following bit of CSS to create a linear background gradient. It seems to work just fine in IE8/9, FF, Safari and chrome but not in IE7. IE7 shows a solid (green) background. Here is my code .menu_body a { display:block; color:#006699; background: #008800; /* Mozilla: */ background: -moz-linear-gradient(top, #0b71a4, #025f8e); /* Chrome, Safari:*/ background: -webkit-gradient(linear, left top, left bottom, from(#0b71a4), to(#025f8e)); /* MSIE */ filter: progid:DXImageTransform

Css attribute selector for input type=“button” not working on IE7

隐身守侯 提交于 2019-11-27 21:31:31
I am working on a big form and it contains a lot of buttons all over the form, therefore I am trying to get working input[type="button"] in my main css file so it would catch all buttons with out having to add a class to every single one, for some reason this is not working on IE7, after checking on the web it says that IE7 should be supporting this. Also it has to be type="button" and not type="submit" as not all buttons will submit the form. Could anybody give a hint what am I doing wrong? input[type="button"] { text-align:center; } I have also tried input[type=button] ipr101 I was

IE7 CSS inheritance does not work

爱⌒轻易说出口 提交于 2019-11-27 21:02:35
I have set some style for h2 tags (color, font-size, etc.), but when I put "A" tag inside, then style becomes as link. My html: <h2> <a class="no-decor" href="http://localhost/xxx/">Link</a> </h2> So, as You can see, I've created "no-decor" class. It should inherit h2's style for "a" tag. a.no-decor { color:inherit; font-family:inherit; font-size:inherit; font-weight:inherit; text-decoration:inherit; } On Firefox everythig is ok, but IE still shows tag "a" style (underline text-decoration and blue color). I know, I can set some style for "h2 a", but maybe somehow it is possible to force work

IE7 CSS Scrolling Div Bug

心不动则不痛 提交于 2019-11-27 17:49:01
I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand. I believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it works correctly in "quirks mode" / no-doctype): <div style="overflow: auto; height: 150px;"> <div style="position: relative;">[...]</div> </div> In IE7, the outer div is a fixed size and the inner div is relatively positioned and contains more content (assuming the inner div causes an overflow). In all other browsers, this

.indexOf function on an array not working in IE7/8 using JavaScript

偶尔善良 提交于 2019-11-27 14:22:39
Can anyone tell me if IE 7 and IE 8 support the JavaScript .indexOf() method as I am receiving the error: SCRIPT438: Object doesn't support property or method 'indexOf' from the IE9 debug console (used under both IE7 and IE8 Browser mode). For the below comment, the code using .indexOf() is as follows: if(shirt_colour == 'black') { p_arr=['orange','red','green','yellow','bblue','rblue','pink','white','silver','gold']; if( p_arr.indexOf(print_colour) != -1 ) rtn = true; } On IE<9 indexOf() it is not "well" implemented. Try to add this function on your code : if (!Array.prototype.indexOf) {

Strange float behaviour in IE7

懵懂的女人 提交于 2019-11-27 13:43:35
I want to create a simple box with a header bar containing a title and some tool buttons. I have the following markup: <div style="float:left"> <div style="background-color:blue; padding: 1px; height: 20px;"> <div style="float: left; background-color:green;">title</div> <div style="float: right; background-color:yellow;">toolbar</div> </div> <div style="clear: both; width: 200px; background-color: red;">content</div> </div> This renders fine in Firefox and Chrome: http://www.boplicity.nl/images/firefox.jpg However IE7 totally messes up and puts the right floated element to the right of the

Bang IE7 - What does it mean?

心已入冬 提交于 2019-11-27 13:27:05
That title isn't quite as crazy it seems. I promise!! While researching for another question, I noticed the following in Stack Overflow's stylesheets: ... width: auto; ... width: 650px!ie7; padding-bottom: 20px!ie7; ... Is this an odd type of conditional styling? Is this a mistake? Assuming it isn't a mistake, does this work with all IE versions? Is there a way of specifying that a given rule should only be applied to versions of IE greater than – say – 7? I have never encountered of this before – I've always used conditional comments for IE-specific styles (and for what it's worth, I prefer

Javascript to close IE6, IE7, IE8 and Firefox without confirmation box?

﹥>﹥吖頭↗ 提交于 2019-11-27 13:22:23
问题 Suppose, I want to have a link or a button that when user click it, will close the browser without any confirmation dialog box. It needs to work in Internet Explorer 6, 7, 8 and Firefox. 回答1: I have done some research and found out that it is not possible to close window/tab in Firefox if that window/tab isn't open through javascript or if the tab has history pages > 1 (i.e. Back button clickable because you browse through webpages). Way to do in Firefox : Delete the history first. Then you