...

View Full Version : What DOM/CSS/Javascript Stuff Do Not Work In IE5/IE6?



dealmaker
08-19-2005, 11:57 PM
Hi,
I am trying to get my javascript/dom/css code to work with IE5/6. My code works great in Firefox, but not in IE. Do you know of a website that lists all the known javascript/dom/css stuff that don't work in IE?

Many thanks.

martin_narg
08-20-2005, 12:12 AM
http://www.mozilla.org/docs/dom/dom-talk/moz_vs_ie.html

Gecko DOM Reference:
http://www.mozilla.org/docs/dom/domref/

IE Dom:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/doc_object.asp

CSS Filters/Hacks:
http://www.dithered.com/css_filters/css_only/index.php

Hope this helps

m_n

dealmaker
08-20-2005, 12:18 AM
I just did further debugging and found that IE6 has problem with style.naturalHeight/naturalWidth, I use alert() to output the naturalHeight in IE and it shows "undefined". I did a search online, and people say that naturalWidth/Height work in IE.

Any other way to find image's original width/height? It's because not all the <img> has width or height defined in the html.

dealmaker
08-20-2005, 12:46 AM
I just tried "if(img.complete)" in img.onload, and found that the loading is not complete even though IE already trigger onload function. Weird! Firefox never has that problem.

dealmaker
08-20-2005, 05:25 AM
Another weird thing:

I put the following inside the img.onload function:

if(!img.complete) {

alert(img.readyState);
}


it says "complete"!!! So img.complete says "not complete", but readyState says "complete"!

What the...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum