views:

135

answers:

4

I am using jQuery and the cornerz plug in to get rounded corners on elements of the page without 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

+2  A: 

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.)

T.J. Crowder
A: 

If $$ is not the typo.. replacing it with $(this) should be it ?

jAndy
A: 

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

Mirko
A: 

I solved eveything using an older version of jQuery

Mirko