Download & Extend

'1' is null or not an object

Project:CurvyCorners
Version:6.x-1.0
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

The following error is coming out in IE8 browser. The error is not there using FireFox or Google chrome.

------------------------------------------------------------------------------------------------------------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)
Timestamp: Tue, 23 Nov 2010 11:04:00 UTC

Message: '1' is null or not an object
Line: 1
Char: 25862
Code: 0
--------------------------------------------------------------------------------------------------------------------

Comments

#1

From CurvyCorners.net:

Bug: The script fails with the error:

'1' is null or not an object

when you specify multiple corners in a single css statement.

For example, the below breaks curvycorners (at least in IE8):

-webkit-border-radius: 8px 8px 0 0;

If I use seperate statements:

-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;

this error does not occur.

Also:

For those of you using curvycorners.js version 2.0.4 from the zip file and getting an IE8 error 'exec(...).1' is null or not an object ... you may want to check to see if your div has a microsoft.gradient filter on it. This version of the script breaks on line 1 char 13,871...

var n=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1])

...is expecting you have applied an alpha (opacity) filter and breaks if you have applied a gradient! I didn't check this on the beta or SVN (I believe these versions fail silently).

HTH-