I’m trying to use the rounded corners demo for jQuery (http://plugins.jquery.com/project/corners), but I’m getting an error in both Firefox and IE when it tries to run.
The code below shows what I’m trying to do, the error is ‘$(“.Section”).corners is not a function’. The page is definitely loading jquery, but not loading the corners plugin.
Anyone know why this is throwing an error?
<script src="../../Content/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../../Content/Scripts/jquery.corners.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.Section').corners();
});
</script>
I created a page to load jQuery Corners to see if I could get it to work at all:
What I found in my tests is that the Corners plugin loaded, but using jQuery 1.4.4 and testing with Chrome 8.0.552.224, Safari 5.0.3, Firefox 3.6.13, and Internet Explorer 8 that only Safari and Fireefox showed the corners. Chrome produced CSS errors in the console, IE just ignored the JavaScript. With that in mind, I recommend you give CSS3 PIE a try for IE and use a bit of combo CSS for your other elements:
The CSS above is from an example produced in a blog post by Jon Raasch.