internet-explorer-7

Word wrapping for button with specified width in ie7?

此生再无相见时 提交于 2019-12-19 09:07:13
问题 So I have a submit button with a specified width and the containing text is pulled in from elsewhere, it's dynamic. The problem is that in ie7, the text does not overflow properly and wrap onto a second line, it just runs off into oblivion! Here is the html. <input type="submit" value="<?php echo $dynamic_data ?>" class="custom-submit"> And the css. .custom-submit { height: 76px; white-space: normal; width: 140px; } I have seen people suggest elsewhere to put line breaks into the button's

How to get “data” attribute in ie 7?

自古美人都是妖i 提交于 2019-12-19 07:51:04
问题 I use "data" attribute and in IE7 and I don't know how to get value of it. Can jQuery possibly help me? I have this window.event.srcElement.getAttribute('data-pk') Of course it does not work. Edit: for (i=0; i < max; i++) { if (typeof attachEvent == 'undefined'){ //open[i].addEventListener('click', function(e){ openSlide(e.currentTarget.getAttribute('data-pk')), false}); open[i].onclick = function(e){ openSlide(e.currentTarget.getAttribute('data-pk')), false}; } else { open[i].attachEvent(

How do I use max-height on <div> element?

自古美人都是妖i 提交于 2019-12-19 06:02:26
问题 I have a element that is set to contain a table element. The table element will have anywhere from 0 to upwards of 350 rows. I thought the easiest way to size this DIV element was to apply the max-height property so the DIV element would grow as content was added and add a scroll bar once the content exceeds the max-height property. Code: <div style="max-height:209px;overflow:auto;"> <table> <tr><td>CONTENT</td></tr> </table> </div> What I get instead is that when the content reaches the max

getAttribute cannot return class in IE7?

两盒软妹~` 提交于 2019-12-18 19:45:22
问题 I need to find random nodes according to random attribute values. To do that I use getAtrribute on nodes from getElementsByTagName. It seems like when I look for class name as attribute it does not work on IE (works on FF). Anyone know if getAtrribute doesn't work only on 'class' or other attributes as well? (if its only class I'll do a workaround.) 回答1: It's worth testing all of your Javascript cross-platform, if you're not using something like jQuery to take the pain away, but Class may

How to test my application on older version of IE?

走远了吗. 提交于 2019-12-18 18:58:34
问题 I have installed IE8 on my system. I usually test my application on this browser, but the problem arises when i got to know that the client is using IE7. Now how can i test my application on IE7? One possible solution is to have dual booting on my system. So on version of Windows i can have IE7 and on another i can have IE8. But i really don't want to use this solution. Another possible solution is to use PC Emulator [ Don't know what is this, just heard about these ]. Using which i can have

Black border on IE7 buttons on textarea/input focus

痴心易碎 提交于 2019-12-18 17:34:22
问题 I've run into a weird IE7 problem.. I have some standard CSS styled buttons with a background picture and a solid 1px blue border. They work as supposed except in IE7.. If I click inside a form element (textarea/input-field) it automatically adds a black border on my buttons.. Sometimes it also happends in other cases where elements are in focus/active.. You can see a simple example here The thing is that I need the border on the buttons for styling reasons, so isn't there a way of disabling

Black border on IE7 buttons on textarea/input focus

▼魔方 西西 提交于 2019-12-18 17:34:01
问题 I've run into a weird IE7 problem.. I have some standard CSS styled buttons with a background picture and a solid 1px blue border. They work as supposed except in IE7.. If I click inside a form element (textarea/input-field) it automatically adds a black border on my buttons.. Sometimes it also happends in other cases where elements are in focus/active.. You can see a simple example here The thing is that I need the border on the buttons for styling reasons, so isn't there a way of disabling

401 - Unauthorized in IE7 only with windows authentication.

夙愿已清 提交于 2019-12-18 16:57:45
问题 I've created an intranet site that uses windows authentication In chrome I can access the site instantly, and in FF it requires Active Directory login. But with IE7 I'm getting the following error: 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied. Im unsure as to why its okay in other browsers but not IE? Any help appreciated. Thanks 回答1: Solution: IE is using Kerberos and not

I get this error! [ 'return' statement outside of function ]

冷暖自知 提交于 2019-12-18 15:35:16
问题 I was creating a form validator for a client and ran into this weird error ONLY in Internet Exploder (Explorer) 7/8.... 'return' outside of function, line 1, char 1 Of course, there was no code whasoever on line 1, it was a simple commented statement. And there was nothing wring with it in any way. So I knew it was just a debug miss-direct. I have been pulling my hair out to understand what could be wrong here... I have already ruled out the obvious: return statements in a loop, too many

radio Buttons and .attr('checked','checked') does NOT work in IE7

本小妞迷上赌 提交于 2019-12-18 12:55:12
问题 Is there any way to get radio buttons checked upon appending in IE7? What seems to work in every browser, doesn't look like it works in IE6,7 despite reading everywhere that I'm doing it correctly. I have absolutely no idea why it's not working. var $itemVariantRowRadio = $("<input/>") .attr("type", "radio") .attr("name", "itemvariant") .addClass("itemvariant") .val('whatever'); $itemVariantRowRadio.attr('checked', 'checked'); $itemVariantRow.append($itemVariantRowRadio) Now if I do a console