Showing posts with label IE. Show all posts
Showing posts with label IE. Show all posts

Friday, September 23, 2011

IE8 max-height bug

The CSS tag max-height can be useful to make your divs extend to the height of the page.
IE8 doesn't understand max-height. A workaround is this hack:
div {
max-height: 1000px;
<!--[if IE 8]>
max-height: none\9;
<![endif]-->
}
</style>

Sources: http://my.opera.com/dbloom/blog/2009/03/11/css-hack-for-ie8-standards-mode and http://www.sitepoint.com/forums/showthread.php?618830-IE8-Bug-I-need-to-fix

Friday, August 26, 2011

Wednesday, April 7, 2010

IE javascript error "Invalid argument"

If you get one of the following errors in IE when running jQuery and/or jqGrid:

Message: Invalid argument.
Line: 112
Char: 247
Code: 0
URI: http://.../jquery-1.4.min.js


or

Message: 'p.cellLayout' is null or not an object
Line: 10
Char: 56008
Code: 0
URI: http://.../jquery.jqGrid.min.js


It is quite possibly that you are trying to set something to null. Check if any of the javascript variables in the page are null and being used as parameter to call a jqGrid or jQuery function.

NOTE: IE often doesn't specify the correct line number. So even though it may say line 10, the error could be somewhere else, this is why it is so hard to debug IE. The reason is dynamic pages where javascript libraries and content is added on the fly, IE can't keep up with this.