internet-explorer-7

IE7 line break inside div messes up bottom margin

I noticed strange behavior in IE7 that does not occur in Firefox. If you notice in "testing 2" "div",when I add 2 line breaks at the bottom of this div, it does not respect margin set up for this div, and "test 3" div is right below it without margins. When I remove "br" then "test 2" and "test 3" divs have margins between them. Is this...

IE7 Ext JS problem: Unspecified JS error on window.close()

I am using Ext JS to make a popup window, here is the code: function popupImage(term, imageNumber){ if(currentPopupWindow!=null){ currentPopupWindow.close(); } currentPopupWindow = new Ext.Window({ layout : 'fit', closeAction :'hide', plain : true, ...

displaying a javascript-generated div in IE7

The following code shows what I expect in Firefox and Chrome: a small white square in a big green rectangle. I don't see the small square in IE7. How can I make it appear? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/...

IE7 : an excessive margin in form for textarea

I am trying to deal with an IE7 bug in my application. Here is the HTML/CSS code <div style="margin-left: 320px"> <form method="post" action=""><fieldset> <textarea name="prj_comment" id="prj_comment" rows="5" cols="50" style="margin: 0; padding: 0"></textarea> </fieldset></form> </div> In Firefox/Op...

getAttribute cannot return class in IE7?

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 d...

Table cell selection in IE7 and FF3

I'm trying to implement html table row selection in IE7 and FF3. When user clicks on the row with ctrl key, he can select separate rows. When he clicks with shift key he can select rows range (so in other words: I'm trying to implement items selection like in the select box or in file explorer). I have javascript for highlighting selec...

avoiding page refresh when rewriting html with outerHTML

I have to read, change and rewrite an HTML OBJECT tag using node.outerHTML. on IE7. There is a brief refresh of the screen when I do that. I guess that the browser repaints the screen when I write the HTML. The actual OBJECT tag data is the same as before with only one parameter (wmode) that has changed. Size of the object and other pa...

IE7 iframe blank page

I am working on a web page which has an iframe and I am loading an external site in the iframe. The page works fine in IE6, FF etc but in IE7 all I see is a blank page. I found that this is due to the phishing filter in IE7. The phishing filter will not be able to check the web page inside the iframe so it will not be rendered properly...

HTML Page Layout Looks Fine in IE7 but not IE6

I have an ASP.NET MVC View that works great on IE7, but looks really crappy when I try to view it with IE6. With IE6, the white area of the page (the ContentPlaceHolder part) is bunched over to the right and does weird things like move around when I resize the window. I have looked in the .aspx, Site.Master, and Site.css to see what is...

CSS - Content gets pushed to the left only in IE 7

My website passes both validation for both XHTML and CSS. It looks fine in Firefox, Chrome, Safari, Opera, even IE 6 (alas, not IE 5.5 but who cares?). Why then, would everything be pushed all the way to the left in IE 7? Any suggestions would be much appreciated. ...

IE focus on form element in ajax response

i have tried setTimeout, eval, try/catch, callback functions etc and nothing works reliably. this has been driving me nuts for ages! here is a test case ...

document.readystate = undefined

From external JS script I use document.readystate to determine whether the document is loaded. If its not loaded I attach Onload event listner. However when I run the script from IEPRO (similar to FF greasemonkey) on IE7 document.readystate returns 'undefined'. (I guess that IE7PRO runs the script after the document has loaded already)...

Might be a quickie: Escape problems (I think) in an .innerHTML call

The setup: I have a suckerdiv menu with links that call a function. Said function looks like: function F(string) { var s = ''; var c = ''; var t = ''; if(string == 'cat') { s = "cat"; c = "animal"; t = "fluffy"; } // ... document.getElementById("title").innerHTML = t; document....

IE Problem in jQuery

I am using the jQuery plugin Cross Slide. My page is working fine in Chrome and Firefox. But in IE 7, I get: Debug error as Object expected on line 1: $(document).ready(function() { $('#image').crossSlide({sleep:4,fade:1},[{src:'images/1.jpg'},{src:'images/2.jpg'}]); }); How can I fix bug in IE 8 & 7? ...

IE7: tricks/plugins for seeing all the html on a page?

I'm working on an app that's sort of a bastardization of old and new tech (ASP/ASP.NET). It's all running in IE7. I'd like to be able to right click, View Source and actually see all the html that I'm seeing with my eyes. For example, I have a bit of text in the middle of the page that's in a table. I right click directly on that bit of ...

IE hanging, using 100% of the CPU

I have a web application, which in the course of a normal interaction, hangs IE. By "IE being hung", I mean that IE doesn't respond anymore and using 100% of the CPU. The only to get out of this state is to kill the IE process. About the app: It loads only one page in the browser, communicates with a server with Ajax queries, and updat...

Running IE6, IE7, and IE8 on the same machine

Like everyone else ;), I need to test my code on IE6 and IE7. Now IE8 has some great tools for developer, which I'd like to use. I'd also like to start testing my code with IE8, as it will soon be released. The question is: how to run IE6, IE7, and IE8 on the same machine. So far with IE6 and IE7 I've been using Multiple IE. But people ...

Jan 2009 Microsoft update breaks mp3 sound objects in IE7

There are a couple of web sites I maintain that use HTML audio/mp3 objects within a page. They use to work but then something broke. The pages rely on Windows Media Player if the client browser is IE. A month or so ago, the object would appear as a WMP control. It should look like this But now what appears resembles a mail slot a ti...

JSON structure not working in IE7 (JavaScript)

OK, I'm new to JSON so please forgive me if my question is a little ignorant - I've beat my head against the wall too much and need some expert advice. I'm trying to get a simple example working where an HTML page uses jQuery's JSON/AJAX functions to make a call to an example PHP page which passes back a simple JSON data structure and t...

Internet Explorer 7 - Javascript 'undefined' not testing

Hey there I'm having trouble with some JS in IE7. I'm testing to see if a certain object has a className (its possibly an HTMLElement object from the DOM) assigned. Now, testing the page in Firefox tells me that Yes, the variable is undefined (all my tests below do the Alert(). In IE, none of the tests pass, the variable gets assigne...