Forum: Ruby on Rails Draggable Window

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D4dafe97f12c314d5e06f7a455091d1d?d=identicon&s=25 Rob Mayhew (coldtone)
on 2006-02-16 20:06
Is there any component in rails that makes a draggable window? My
current application needs to have windows containing controls that can
be moved to new locations on the browser.

Thanks

Rob
9f882c3f1fd29086ce00cbbf78f42cf7?d=identicon&s=25 Saad Shakhshir (saads)
on 2006-02-17 00:52
Rob Mayhew wrote:
> Is there any component in rails that makes a draggable window?

The draggable functionality is provided through javascript.  Take a look
at the script.aculo.us documentation at
http://wiki.script.aculo.us/scriptaculous/show/DragAndDrop

Script.aculo.us is by default included in any rails app under the
public/javascripts directory.  There are rails wrappers around the
script.aculo.us library.  Have a look at the rails API's for
ActionView::Helpers::JavaScriptHelper - there is a draggable_element
method there.
This topic is locked and can not be replied to.