script.aculo.us is a JavaScript library built on the Prototype JavaScript Framework, providing dynamic visual effects and user interface elements via the Document Object Model.
It is most notably included with Ruby on Rails, but also provided separately to work with other web application frameworks and scripting languages.
Features
script.aculo.us extends the Prototype Javascript Framework by adding visual effects, user interface controls, and utilities.
Visual effects
There are five core effects script.aculo.us offers: Opacity, Scale, MoveBy, Highlight, and Parallel. Through these effects there are over 16 additional effects using combinations of the core effects out of the box. Programmers can also extend and make new effects.
Enabling an effect is a matter of assigning an element with an ID name and one line of code for the effect. Below is an example for the Effect.Fade effect applied to a DOM element with ID of ‘id_of_element’:
Controls
Controls offers user interface elements including:
- Drag And Drop
- Draggables
- Droppables
- Sortables
- Slider
- Autocompletion
- In Place Editing
Category:
Tags: