Re: Help please-draggable

Thomas Fuchs
Sat, 24 Jun 2006 20:07:29 -0000

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.
>
>
> <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 src="/javascripts/dragdrop.js"
type="text/javascript"></
> script>
> new
Draggable(''ele123'')
> .....................
>
>
>
>
>
> <select name="select1" size="5"
id="ele123">
> Blue
> Red
> Orange
> Green
> Aquamarine
>
>
>
>
>
> Stuart