If you are still seeing the "Draggable not defined" message, that most likely means it cant find the draggable _javascript_ function that you are calling with the "new Draggable" call... are you able to reference any js functions defined in prototype using the paths you listed above? maybe try removing the leading "/" that you have in front of your path to the js files to make it read "_javascript_/..." instead of "/_javascript_/..."

good luck!

BD

On 6/23/06, Dark Ambient <[EMAIL PROTECTED]> wrote:
This is driving me absolutely crazy :).  The scripts are all in /_javascript_s.
I've made sure that all the links are correct.
Also moved the script for the draggable right below the </select> tag.

<div id="palette">


<select name="select" 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>
<script type="text/_javascript_" language="_javascript_"> new
Draggable('ele123', {revert:true})</script>
</div>

I've run plenty of _javascript_ off my host server so I know that can't
be the problem.  The drag and drop run in neither FF or IE6. Neither
of them are throwing any messages.

Stuart

On 6/23/06, Dark Ambient <[EMAIL PROTECTED]> wrote:
> Very new to "coding" _javascript_.
>
> I've moved the script below the </select> on top of that, under the
> <select>, outside of the div , very odd.  The only error I get from FF
> java console is "Draggable is not defined"  IE also reports there are
> script errors in the page.
>
> This is script - I think it's right, I'd like to move on to options.
> <script type="text/_javascript_">new Draggable('ele123', {revert:true})</script>
>
> Stuart
>
>
> On 6/23/06, Gregory Hill < [EMAIL PROTECTED]> wrote:
> > You need to put the script that creates the draggable below the element
> > you want to be draggable.  Pages are parsed sequentially by browsers, so
> > your _javascript_ is being evaluated in the HEAD, long before the element
> > you are trying to reference has been built by the browser.  I'm
> > surprised you aren't seeing _javascript_ errors galore.  The alternative
> > is to create the draggable in an onload event, but that is not evaluated
> > until all images are loaded (this was a topic of discussion last week,
> > and there is a complex workaround, so look at the archives for more info
> > if you want).
> >
> > New to _javascript_?
> >
> > Greg
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:rails-spinoffs-
> > > [EMAIL PROTECTED]] On Behalf Of Dark Ambient
> > > Sent: Friday, June 23, 2006 2:12 PM
> > > To: rails-spinoffs@lists.rubyonrails.org
> > > Subject: [Rails-spinoffs] Help please-draggable
> > >
> > > 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="">> > type="text/_javascript_"></script>
> > > <script src=""
> > > type="text/_javascript_"></script>
> > > <script src="">> > 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
> > > Rails-spinoffs@lists.rubyonrails.org
> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> >
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to