Object does not support this propery or method IE & jQuery
I am using jQuery and the cornerz plug in to get rounded corners on elements of the page with开发者_C百科out using images.
In IE7 and 8 it fails and I get this error:
"Object doesn't support this property or method"
on this lines:
if($.browser.msie && settings.fixIE) {
var ow = $$.outerWidth();
var oh = $$.outerHeight();
Basically it complains about the outerWidth and outerHeight properties...
The cornerz demo page (here) works perfectly on IE7 and 8 without throwing any error and it has got several examples...I do not know why this is happening
Any suggestion will be appreciated
Thanks in advance
I think you're missing this line earlier in their script:
var $$ = $(this);
jQuery doesn't have a $$
symbol, and I don't think cornerz does either (looking at the source), they're just using it as a local variable in a function. (See line 117 in the cornerz source.)
I solved the problem using an old version of jQuery: instead of the 1.4.2 I went for the 1.2.6 and everything worked as expected
精彩评论