Rico.Corner has no properties error

They have: 9 posts

Joined: Jun 2007

Can someone tell me why my code below is giving me the error Rico.Corner has no properties?

Thanks...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Test</title>
    <script type="text/javascript" src="rico/src/rico.js"></script>
    <script type="text/javascript" src="rico/src/prototype.js"></script>

<style type="text/css">
.roundme { width:250px;background-color:#FFA448;margin: 20px; }
.contents { padding: 10px }
</style>

<script type="text/javascript">
Rico.Corner.round('div2');
</script>

</head>
<body>

<div class="roundme" id="div2" >
<div class="contents">
A div element with rounded corners
</div>
</div>

</body>
</html>

RalphF

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I think you should have this:

<script type="text/javascript" src="rico/src/prototype.js"></script>
    <script type="text/javascript" src="rico/src/rico.js"></script>

in stead of:

<script type="text/javascript" src="rico/src/rico.js"></script>
    <script type="text/javascript" src="rico/src/prototype.js"></script>

Just a wild guess though, because I'm not familiar with Rico. But I assume Rico uses the prototype library and not the other way around, so you'll have to include prototype first.

Shakespeare: onclick || !(onclick)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.