Re: Help please-draggable

Dark Ambient
Sat, 24 Jun 2006 20:41:22 -0000

So I linked dragdrop and effects in the order mentioned below (Thank
you Thomas).
The image is now dragging , but the select box is not.  Is it possible
selects need a handle ?

Stuart

On 6/24/06, Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org>
wrote:
> 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
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs