mattclegg / jquerycurvycorners

Automatically exported from code.google.com/p/jquerycurvycorners
0 stars 0 forks source link

Bug on exec(...) is null or not object when using IE8 + Jquery1.4.4 #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use Jquery 1.4.4 and it breaks only on IE 8
tried older version (1.4.2 and works fine.)..need to use some 1.4.4 

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; 
.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 
3.5.30729; InfoPath.2)
Timestamp: Fri, 24 Dec 2010 13:35:00 UTC

Message: 'exec(...).1' is null or not an object
Line: 62
Char: 248
Code: 0
URI: 
http://www.mirageglobe.com/wp/wp-content/themes/mgtt/scriptgs/jquery.curvycorner
s.min.js

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.1.1 latest on google code. 
Mac OSx. Tried and works on Chrome, Firefox, Safari.. Doesnt work in IE8.

Please provide any additional information below.

Original issue reported on code.google.com by miragegl...@gmail.com on 24 Dec 2010 at 1:39

GoogleCodeExporter commented 9 years ago
Opps. i think its fixed. downloaded new version.. works now

Original comment by miragegl...@gmail.com on 24 Dec 2010 at 1:50

GoogleCodeExporter commented 9 years ago
hang on. the problem is still valid. tested on 1.4.3 and works. 1.4.4 breaks.

Original comment by miragegl...@gmail.com on 25 Dec 2010 at 9:27

GoogleCodeExporter commented 9 years ago
I also have this issue, has anyone resolved?

Original comment by JeremyCh...@gmail.com on 5 Jan 2011 at 6:49

GoogleCodeExporter commented 9 years ago
Line 455 in the 2.1.1 source:
var trans = filter ? parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1]) : 100; 
// IE8 bug fix

if you test the regular expression against filter first, you won't get an error 
if exec() returns null. So:

var regExpFilter = /alpha\(opacity.(\d+)\)/;
var trans = regExpFilter.test(filter)[1] ? 
parseInt(regExpFilter.exec(filter)[1]) : 100; // IE8 bug fix

Original comment by dr.za...@gmail.com on 14 Jan 2011 at 8:09

GoogleCodeExporter commented 9 years ago
this last debug works fine in IE8 ! thanks! 

Original comment by corentin...@gmail.com on 31 Mar 2011 at 10:20

GoogleCodeExporter commented 9 years ago
dr.za...
Where does this code go? I think this is the fix, but I have no idea where to 
put the code. 

Thanks for the help!

Original comment by dbran...@ausrad.com on 23 Apr 2011 at 9:40

GoogleCodeExporter commented 9 years ago
@dbran...

I had the same problem, so I edited the existing (full code) and packed it 
again. Give it a try...

Original comment by karel.pe...@gmail.com on 4 May 2011 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@karel,

Thanks for the file. It fixed the issue with IE8

Original comment by sunil.ga...@gmail.com on 11 May 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Thanks! 

Fixed for IE8 Standard mode thanks thanks thanks.. Dr Za

Original comment by sonu.bi...@gmail.com on 10 Jun 2011 at 10:57

GoogleCodeExporter commented 9 years ago
Great IE8 fix. Thanks.

Original comment by trose...@gmail.com on 28 Jun 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Thank you very much @Karel..

Was debugging for same from yesterday finally got here....:)

Thanks Again ..

Original comment by sonu.bi...@gmail.com on 24 Aug 2011 at 9:31

GoogleCodeExporter commented 9 years ago
@Karel.

Today, I got a bug for my registration form. i am using asp.net validator but 
in middle i have also done some custom validations by hiding some table row and 
span in it.

When i revoke that table row and span, rounded effects not applied to the span 
on which i am applying the rounded corners.

My validation error comes in rectangle without rounded effect.

I have checked below with the site instructions 
http://www.curvycorners.net/instructions/

I found Using Asp.Net option and redraw function to revoke, but @Karel i am 
using you 
jquery.curvycorners.js script in which curvyCorners function is not defined so 
i get that error in ie of undefined. 

Also i have try to use there curvycorner.js from there site but i get error 
Object doesn't support this property or method.

And it gives nothing to redraw alert from there curvycorner.js file and also no 
rounded effects applied to validation errors.

This is the code i am using with your script it works fine for default 
validation errors, but not for the case i have mentioned above.

<!--[if lte IE 8]>
<script src="/Scripts/CurvyCorners/jquery.curvycorners.js" 
type="text/javascript"></script>
<script type="text/javascript">

    $(window).load(function () {
      //For Rounded Corners on top Navigation

        $(function(){   
          settings = {
            tl: { radius: 6 },
            tr: { radius: 6 },
            bl: { radius: 6 },
            br: { radius: 6 },
            antiAlias: true,
            autoPad: false,
            validTags: ["div"]
          }

        $('.errorBg').corner(settings);

          });
    });

   </script>
<![endif]--> 
One doubt would you please clear?
If i use the script file from curvycorners website so do i have to include 
jquery file for same?
But i am seeing no reference to any jquery file in there website?

Can you please help me out how i can redraw the elements with your script.
Urgent reply would be more helpful.

Thanks.

Original comment by sonu.bi...@gmail.com on 25 Aug 2011 at 12:01

GoogleCodeExporter commented 9 years ago
really  valuable replys  ...
it is working fine  thank you

Original comment by krishnak...@gmail.com on 6 Jun 2013 at 4:55