Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question What DOM/CSS/Javascript Stuff Do Not Work In IE5/IE6?

    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.

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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.
    Last edited by dealmaker; 08-20-2005 at 01:30 AM.

  • #4
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •