Drag and Drop Problems

I’m working with the Drag and Drop Example that appears in AWD and
various other places. The problem that I’m having right now is that I
can’t grab and drag my objects.

I get Javascript errors in Firebug that say Draggable is not defined and
Droppables is not defined.

I’m hesitant to put up all of the code that it takes to make this all
happen and thought I’d first ask if anyone else has had problems and
could point me in a direction before putting up all of the code. I can
post code here if needed, just let me know if only segments are needed
or all of it.

Thanks!

sounds as if you didn’t include the javascripts for prototype &
scriptaculous:

javascript_include_tag :defaults

in the header of your layout should do this

Thorsten M. wrote:

javascript_include_tag :defaults

in the header of your layout should do this

Yep, that worked. Dumb error, I have different layouts and didn’t
include it in the layout I was using.

Now I get new errors including Droppables has no properties and
Draggable is not a constructor. Looks like I have new errors to
resolve. If anyone has any thoughts on these, I would appreciate it.

I think that I’ve got it now. The code wasn’t updating and so now I’m
set.