Posted by Andreas NĂ¼bel
on 19.09.2007 10:19
Hi,

can anyone tell me why i get the following error:

Class is not defined
var CustomDropzone = Class.create();

it occurs in the ricoDragAndDropCustomDropzone.

this is the html code referring to the problem:

<code>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Dropzone</title>
    <meta http-equiv="content-type" content="text/html; 
charset=ISO-8859-1">

    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script src="ricoDragAndDropCustomDropzone.js" 
type="text/javascript"></script>
    <script src="ricoDragAndDropCustomDraggable.js" 
type="text/javascript"></script>
    <script src="rico.js" type="text/javascript"></script>
    <script src="prototype.js" type="text/javascript"></script>
    <script src="ajaxtags.js" type="text/javascript"></script>
    <script src="util.js" type="text/javascript"></script>
  </head>
  <body>
    <div style="background:#f7a673;width:100px" id="dragme">
      Drag Me
   </div>
   <br/>
   <div style="margin-bottom:8px">
      <div id="droponme" style="display:inline">
         <div style="background:#ffd773;width:200;height:200px">Drop On 
Me</div>
      </div>
   </div>

   <script>
      dndMgr.registerDraggable( new 
CustomDraggable('dragme','drag','droponme') );
      dndMgr.registerDropZone( new CustomDropzone('droponme') );
      dndMgr.registerDropZone( new CustomDropzone('droponme2') );
   </script>
  </body>
</html>


</code>

i would be thankful for any help

andreas