Problem with using script.aculos.us

HI everybody,

I’m newbie to rails application.
I like to use script.aculos.us script in my app.

In that I can’t drag the items using script.

This is the code I used inside my .rhtml file.

Effects

Click here if you've seen enough.
Click here if you've seen enough.

Drag and Drop

drag
<%= javascript_tag "new Draggable('dragDIV')" %>
helper
<%= draggable_element :helperDIV %>

And i have the files scriptaculous.js, builder.js, effects.js,
dragdrop.js, controls.js and
slider.js and prototype.js in my app/public/javascripts/

Effects is working well. But Drag and Drop is only
not working well. I cant drag the the above things. And in my
development.log its fetch the above 6 javascripts. I mean it includes
the .js files into my app. But still its not working. Any other
suggestion. Or I missed any code to enable the drag function.

Regards,
Vikki…

On 5/15/07, vikki [email protected] wrote:

This is the code I used inside my .rhtml file.

Looks like you forgot dragdrop.js

I suggest you use the Rails helper to pull in the scripts:

<%= javascript_include_tag :defaults %>

That pulls in all the prototype and scriptaculous scripts, so you
don’t forget anything.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs