Hi,

For the below script, I am getting the error "Sortable is undefined",

<html>
<HEAD>
<title>ABCD</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script language="javascript" src="scripts/prototype.js" type="text/
javascript" ></script>
<script language="javascript" src="scripts/scriptaculous.js"
type="text/javascript" ></script>
<link href="theme/default.css" rel="stylesheet" type="text/css" />
<style>
    ul.testlist {
      list-style-type:none;
      margin:0;
      padding:0;
    }
    ul.testlist li {
      width:200px;
      font:12px Verdana;
      padding:4px;
      cursor:move;
    }
    ul.testlist li.over {
      background-color:#fcb;
    }
</style>
</HEAD>
<body>
<div style="position:relative;left:100px;top:-5px;">
<ul id="testlist" class="testlist">
                <li id="item_1">One</li>
                <li id="item_2">Two</li>
                <li id="item_3">Three</li>
</ul>
</div>
<div id="test2" ></div>
<script type="text/javascript" language="javascript" >
// <![CDATA[
  Sortable.create('testlist', {
  onUpdate: function() { $('test2').innerHTML= Sortable.sequence
('testlist');}
  });
// ]]>
</script>
</BODY>
</html>

All the js files are included properly. The most interesting thing is
that it works as an independent HTML file but fails with the above
error when I ran it on my server as a JSP page.

Any help will be appreciated!

Thanks & Regards
Sujeet

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to