1. You don't need to include dragdrop.js if you're including scriptaculous.js* 2. You can't call new Draggable in the head section, as the element you're referring to is not defined at this time (you have to put the script calling new Draggable _after_ the element is defined in HTML)

-Thomas

* If you don't need other script.aculo.us functionalities besides drag and drop you can also include effects.js (which is required for drag and drop to work) and dragdrop.js (in that order), without including scriptaculous.js

Am 23.06.2006 um 22:11 schrieb Dark Ambient:

I asked the other day about this problem but haven't received a response.

Trying again:

I just downloaded 1.6 and can't get a simple draggable to work, which
is weird. I know it's not my browser since the demos are working.
Here is my simple code.  I've also had the  "new Draggable" between
the select tags.  Didn't change anything.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="/javascripts/prototype.js" type="text/javascript"></ script> <script src="/javascripts/scriptaculous.js" type="text/ javascript"></script> <script src="/javascripts/dragdrop.js" type="text/javascript"></ script>
<script type="text/javascript">new Draggable('ele123')</script>
.....................

<body>

<div id="palette">

<select name="select1" size="5" id="ele123">
 <option value="1">Blue</option>
 <option value="2">Red</option>
 <option value="3">Orange</option>
 <option value="4">Green</option>
 <option value="5">Aquamarine</option>
</select>
</div>

</body>

Stuart
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to