Monday, 3 September 2012

Tips in debugging Java script, CSS issues with Internet Explorer

1. When some UI issue like the input size is displayed smaller in size , then the problem may be because the parent elements size may not have been defined or it may be of smaller size.

2. In the case of tables in ie, when one of the column does not have any value , then we should keep an extra   to represent some value , otherwise it wiil show the broken lines. We can also add frame attribute if the above doesnt work.
3. getElementByClassName function of prototype does not work in IE7 . We should use $$(element type : classname ).

4. Most common issue with javascript failing in IE is an extra comma is added after last array element also.

5. Including a js file 2 times, shows that element not present in IE7 , IE8.

6. In Jquery new option for adding dynamic select doesn't work in IE7 - the workaround is to use .append .

7. IE7/IE8 - ifrmae gives default border. In order to remove it, need to set this explicity for iframe - frame-border = 0 ;

8. When we are trying to put some javascript code inside some unclosed element , then in IE7 it shows problem.
   Workaround - add some dummy element as first clid of the parent and after evalating the javascript remove the firstchild.

9. directly selecting option with the id not working in IE7,8,9.

10. border attribute doesnt work in IE 7 , 8. Work around is to use images as borders.

11. The css written for the html should be verified from w3schools css validators.

12. The js written for the html should be verified using w3schools js validators.

13. HTML should be proper , like proper defining of the head, body tags.


  1. This comment has been removed by the author.

  2. The article is very interesting and very understood to be read, may be useful for the people. I wanted to thank you for this great read!! I definitely enjoyed every little bit of it. I have to bookmarked to check out new stuff on your post. Thanks for sharing the information keep updating, looking forward for more posts..
    Kindly visit us @
    Madurai Travels
    Best Travels in Madurai
    Cabs in Madurai
    Tours and Travels in Madurai

  3. Om kaki ula bhumi, Saya angamet atmane si anu (nama judi kartu yang ingin dimenangkan) Tuminggalin awak sariranku, Teka poma (3 x) Kadep sidhi mandhi mantramku
    bandar ceme terpercaya
    paito warna
    forum prediksi

  4. This comment has been removed by the author.