Provides a set of helpers for calling Scriptaculous JavaScript functions, including those which create Ajax controls and visual effects.
To be able to use these helpers, you must include the Prototype JavaScript framework and the Scriptaculous JavaScript library in your pages. See the documentation for ActionView::Helpers::JavaScriptHelper for more information on including the necessary JavaScript.
The Scriptaculous helpers’ behavior can be tweaked with various options. See the documentation at script.aculo.us for more information on using these helpers in your application.
| Constants | |
|---|---|
| TOGGLE_ |
|
| Public Methods | |
|---|---|
| draggable_ |
Makes the element with the DOM ID specified by element_id draggable. |
| draggable_ |
|
| drop_ |
Makes the element with the DOM ID specified by element_id receive dropped draggable elements (created by draggable_element). and make an AJAX call By default, the action called gets the DOM ID of the element as parameter. |
| drop_ |
|
| sortable_ |
Makes the element with the DOM ID specified by element_id sortable by drag-and-drop and make an Ajax call whenever the sort order has changed. By default, the action called gets the serialized sortable element as parameters. |
| sortable_ |
|
| visual_ |
Returns a JavaScript snippet to be used on the Ajax callbacks for starting visual effects. |
<code/>and<pre/>for code samples.