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.
Rob M. (Guest)
on 2006-02-16 21: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
Saad S. (Guest)
on 2006-02-17 01: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.