script.aculo.us Slider

This plugin provides helpers for the script.aculo.us slider control.

Installation:

You need to run:

rake scriptaculous_slider_install

to install the necessary slider.js file in your public/javascripts folder.

Usage:

Example:

<%= slider_stylesheet %>
<%= slider_field :object, :method, :range => 1..10 %>

slider_field uses a hidden field internally that gets set automatically when using the Slider.

slider_stylesheet builds a stylesheet for the slider (examine the output and copy/paste to your own CSS files).

To see the full functionality and possibilities of the slider control, have a look at the functional and unit tests provided in the script.aculo.us GIT repository, see github.com/madrobby/scriptaculous/tree/master.

For discussion of this plugin use the Prototype / Scriptaculous Google group (groups.google.com/group/prototype-scriptaculous)!

Copyright © 2005 Marty Haught, Thomas Fuchs, released under the MIT license