Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
{
axis:'horizontal',
sliderValue: 1,
range: $R(1, 100),
alignY:0,
values: [<?php echo $values ?>],
onSlide:function(v){
onSlide(v)
},
onChange:function(v){
onChange(v)
}
});
After my onChange(v) function, I want to disable the slider, how can I
do this?
Thanks in advance,
-Chris 6 2957
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
{
axis:'horizontal',
sliderValue: 1,
range: $R(1, 100),
alignY:0,
values: [<?php echo $values ?>],
onSlide:function(v){
onSlide(v)
},
onChange:function(v){
onChange(v)
}
});
After my onChange(v) function, I want to disable the slider, how can I
do this?
What slider is that, from what library? Or is it your own?
On May 24, 5:06*pm, VK <schools_r...@yahoo.comwrote:
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
* * * * {
* * * * * * * * axis:'horizontal',
* * * * * * * * sliderValue: 1,
* * * * * * * * range: $R(1, 100),
* * * * * * * * alignY:0,
* * * * * * * * values: [<?php echo $values ?>],
* * * * * * * * onSlide:function(v){
* * * * * * * * * * * * onSlide(v)
* * * * * * * * },
* * * * * * * * onChange:function(v){
* * * * * * * * * * * * onChange(v)
* * * * * * * * }
* * * * });
After my onChange(v) function, I want to disable the slider, how can I
do this?
What slider is that, from what library? Or is it your own?- Hide quoted text -
- Show quoted text -
it's from scriptaculous
On May 25, 5:58 pm, cmgmyr <cmg...@gmail.comwrote:
On May 24, 5:06 pm, VK <schools_r...@yahoo.comwrote:
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
{
axis:'horizontal',
sliderValue: 1,
range: $R(1, 100),
alignY:0,
values: [<?php echo $values ?>],
onSlide:function(v){
onSlide(v)
},
onChange:function(v){
onChange(v)
}
});
After my onChange(v) function, I want to disable the slider, how can I
do this?
What slider is that, from what library? Or is it your own?- Hide quoted text -
- Show quoted text -
it's from scriptaculous
Then read the producer manuals: http://github.com/madrobby/scriptaculous/wikis/slider
On May 25, 10:54*am, VK <schools_r...@yahoo.comwrote:
On May 25, 5:58 pm, cmgmyr <cmg...@gmail.comwrote:
On May 24, 5:06 pm, VK <schools_r...@yahoo.comwrote:
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
* * * * {
* * * * * * * * axis:'horizontal',
* * * * * * * * sliderValue: 1,
* * * * * * * * range: $R(1, 100),
* * * * * * * * alignY:0,
* * * * * * * * values: [<?php echo $values ?>],
* * * * * * * * onSlide:function(v){
* * * * * * * * * * * * onSlide(v)
* * * * * * * * },
* * * * * * * * onChange:function(v){
* * * * * * * * * * * * onChange(v)
* * * * * * * * }
* * * * });
After my onChange(v) function, I want to disable the slider, how canI
do this?
What slider is that, from what library? Or is it your own?- Hide quoted text -
- Show quoted text -
it's from scriptaculous
Then read the producer manuals:http://github.com/madrobby/scriptaculous/wikis/slider- Hide quoted text -
- Show quoted text -
Thanks, but I read those already. How do I put that into my onchange
function though?
onChange:function(v){
onChange(v)
$('slider').setDisabled = true
}
Doesn't work.
On May 25, 7:03 pm, cmgmyr <cmg...@gmail.comwrote:
On May 25, 10:54 am, VK <schools_r...@yahoo.comwrote:
On May 25, 5:58 pm, cmgmyr <cmg...@gmail.comwrote:
On May 24, 5:06 pm, VK <schools_r...@yahoo.comwrote:
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
{
axis:'horizontal',
sliderValue: 1,
range: $R(1, 100),
alignY:0,
values: [<?php echo $values ?>],
onSlide:function(v){
onSlide(v)
},
onChange:function(v){
onChange(v)
}
});
After my onChange(v) function, I want to disable the slider, how can I
do this?
What slider is that, from what library? Or is it your own?- Hide quoted text -
- Show quoted text -
it's from scriptaculous
Then read the producer manuals:http://github.com/madrobby/scriptacu...is/slider-Hide quoted text -
- Show quoted text -
Thanks, but I read those already.
Did you? I am not convinced: because on the linked page setDisabled is
documented as a method that takes no arguments:
"setDisabled (none) Will set the slider to the disabled state
(disabled = true)"
So:
$('slider').setDisabled()
On May 25, 11:23*am, VK <schools_r...@yahoo.comwrote:
On May 25, 7:03 pm, cmgmyr <cmg...@gmail.comwrote:
On May 25, 10:54 am, VK <schools_r...@yahoo.comwrote:
On May 25, 5:58 pm, cmgmyr <cmg...@gmail.comwrote:
On May 24, 5:06 pm, VK <schools_r...@yahoo.comwrote:
On May 24, 9:58 pm, cmgmyr <cmg...@gmail.comwrote:
Hello,
I'm trying to figure out how to disable a slider through the onChange
function. Here is what I have so far:
new Control.Slider('handle','slider',
* * * * {
* * * * * * * * axis:'horizontal',
* * * * * * * * sliderValue: 1,
* * * * * * * * range: $R(1, 100),
* * * * * * * * alignY:0,
* * * * * * * * values: [<?php echo $values ?>],
* * * * * * * * onSlide:function(v){
* * * * * * * * * * * * onSlide(v)
* * * * * * * * },
* * * * * * * * onChange:function(v){
* * * * * * * * * * * * onChange(v)
* * * * * * * * }
* * * * });
After my onChange(v) function, I want to disable the slider, howcan I
do this?
What slider is that, from what library? Or is it your own?- Hide quoted text -
- Show quoted text -
it's from scriptaculous
Then read the producer manuals:http://github.com/madrobby/scriptacu...der-Hidequoted text -
- Show quoted text -
Thanks, but I read those already.
Did you? I am not convinced: because on the linked page setDisabled is
documented as a method that takes no arguments:
"setDisabled (none) * Will set the slider to the disabled state
(disabled = true)"
So:
$('slider').setDisabled()- Hide quoted text -
- Show quoted text -
I did read it but I didn't know how to impliment it, I'm not a
Javascript guy yet so that's why I'm asking the questions. I tried:
onChange:function(v){
onChange(v)
$('slider').setDisabled()
}
But it didn't work. This discussion thread is closed Replies have been disabled for this discussion. Similar topics
3 posts
views
Thread by Bob Bedford |
last post: by
|
30 posts
views
Thread by Blnukem |
last post: by
|
2 posts
views
Thread by bigrich |
last post: by
|
1 post
views
Thread by Israel |
last post: by
|
2 posts
views
Thread by khng |
last post: by
|
1 post
views
Thread by s.chelliah |
last post: by
|
9 posts
views
Thread by surf_doggie |
last post: by
| | | | | | | | | | | |