![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: 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 - |
#4
| |||
| |||
|
|
On May 24, 5:06 pm, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: 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 |
#5
| |||
| |||
|
|
On May 25, 5:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: On May 24, 5:06 pm, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: 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 - |
#6
| |||
| |||
|
|
On May 25, 10:54 am, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 25, 5:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: On May 24, 5:06 pm, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: 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. |
#7
| |||
| |||
|
|
On May 25, 7:03 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: On May 25, 10:54 am, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 25, 5:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: On May 24, 5:06 pm, VK <schools_r... (AT) yahoo (DOT) com> wrote: On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote: 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 - |
![]() |
| Thread Tools | |
| Display Modes | |
| |