dario
05-28-2007, 11:55 AM
Hello
I'm trying to add a slider to a toolbar. I'm using the script.aculo.us slider, version 1.7.0.
This is my code (tb is the toolbar object which has been already initialized in the page onload event):
var zoomSlider=null;
function initSlider()
{
zoomSlider = new Control.Slider('handleDiv', 'sliderDiv',
{
values: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
increment: 10,
onChange: function(value) { setZoomLevel(value); }
});
zoomSlider.setValue(INITIAL_ZOOM_LEVEL);
tb.add(zoomSlider);
}
This code does not generate any errors but no slider is shown on the toolbar. Any hint?
Thanks in advance!
I'm trying to add a slider to a toolbar. I'm using the script.aculo.us slider, version 1.7.0.
This is my code (tb is the toolbar object which has been already initialized in the page onload event):
var zoomSlider=null;
function initSlider()
{
zoomSlider = new Control.Slider('handleDiv', 'sliderDiv',
{
values: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
increment: 10,
onChange: function(value) { setZoomLevel(value); }
});
zoomSlider.setValue(INITIAL_ZOOM_LEVEL);
tb.add(zoomSlider);
}
This code does not generate any errors but no slider is shown on the toolbar. Any hint?
Thanks in advance!