Internet Explorer “Unspecified Error” with jQuery and getBoundingClientRect

Posted: June 25th, 2010 | Author: | Filed under: Web Development | Tags: , , , , , , | No Comments »

I’ve been getting “Unspecified Error” errors from Internet Explorer with some jQuery code. I traced the cause to jQuery’s “getBoundingClientRect” which comes from a call to $(…).offset({top: X, left: T}).

After looking around in some forums/blogs, it seems the error is coming from some handling of internet explorer with offsetParent in some specific cases. to be honest, I don’t really understand what happens there…

But I did manage to fix it by simply calling $(…).css({top: X, left: Y}) instead of $(…).offset({top: X, left:Y}), which does pretty much the same in my case.

Just thought someone out there might find it useful…


Internet Explorer “Unspecified Error” with jQuery and getBoundingClientRect

Posted: May 8th, 2010 | Author: | Filed under: Web Development | Tags: , , , , , , | 1 Comment »

I’ve been getting “Unspecified Error” errors from Internet Explorer with some jQuery code. I traced the cause to jQuery’s “getBoundingClientRect” which comes from a call to $(…).offset({top: X, left: T}).

After looking around in some forums/blogs, it seems the error is coming from some handling of internet explorer with offsetParent in some specific cases. to be honest, I don’t really understand what happens there…

But I did manage to fix it by simply calling $(…).css({top: X, left: Y}) instead of $(…).offset({top: X, left:Y}), which does pretty much the same in my case.

Just thought someone out there might find it useful…