Adding More Features to Sliders with the Scriptaculous Framework
(Page 1 of 4 )
As you probably know, the Scriptaculous animation framework comes equipped with a module for building DHTML-based sliders. If you want to learn how to include these controls in your own web pages, start reading this article now! Welcome to the final part of the series that began with "Using sliders with the Scriptaculous framework." Comprised of two tutorials, this series gets you started quickly using these powerful DHTML controls, and shows you how to incorporate them into your existing web-based graphical interfaces.
Introduction
As you'll certainly recall, in the previous article of this series, I discussed in detail the key points of how to create basic sliders using the Scriptaculous library. It's definitely a process that can be performed with minor hassles, since it's reduced to working with the handy "Control.Slider" object (logically bundled with the software), in addition to playing with a certain number of incoming parameters accepted by the object in question.
By following the aforementioned approach, it was possible to build vertical and horizontal sliders that were highly customizable, since their look and feel were controlled by two primary DIVs. Besides, the set of incoming arguments taken by these sliders allowed us to easily configure their behavior, ranging from their corresponding alignments to more specific features, such as displaying offset values.
As you saw, creating basic sliders with the Scriptaculous animation package is indeed a straightforward task that can be carried out with minimal requirements. However, there are still more features that need to be covered, specifically concerning the creation of these powerful DHTML controls. Their functionality can be easily expanded by specifying only a few additional parameters.
Thus, assuming that you're really interested in learning how to quickly improve these handy sliders, in this final article of the series I'm going to show you how to incorporate some additional features into the DHTML controls. These features will provide them with the capacity to move their handles at predefined intervals, and to display basic progress bars when the sliders are being moved.
All right, having established the subject of this tutorial, let's continue exploring the numerous capabilities that come bundled with Scriptaculous' DHTML sliders. Let's get started!
Next: Coding an improved horizontal slider >>
More DHTML Articles
More By Alejandro Gervasio