> Error is as follows: > > uncaught exception: [Exception... "Could not convert JavaScript > var getComputedStyle = document.defaultView.getComputedStyle( elem, > null ); Not surprising; IE doesn't implement document.defaultView, let alone the getComputedStyle method. jQuery doesn't -directly- provide a substitute method, either. Try this (untested): function getStyleOf(elem,ref) { return (document.defaultView ? document.defaultView.getComputedStyle(elem,ref) : elem.currentStyle); } -- hj
- [jQuery] Error - getComputedStyle? cloudsteph
- [jQuery] Re: Error - getComputedStyle? Josh Nathanson
- [jQuery] Re: Error - getComputedStyle? hj