HighDots Forums  

disable slider onchange

Javascript JavaScript language (comp.lang.javascript)


Discuss disable slider onchange in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cmgmyr
 
Posts: n/a

Default disable slider onchange - 05-24-2008 , 12:58 PM






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

Reply With Quote
  #2  
Old   
VK
 
Posts: n/a

Default Re: disable slider onchange - 05-24-2008 , 04:06 PM






On May 24, 9:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote:
Quote:
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?


Reply With Quote
  #3  
Old   
cmgmyr
 
Posts: n/a

Default Re: disable slider onchange - 05-25-2008 , 08:58 AM



On May 24, 5:06*pm, VK <schools_r... (AT) yahoo (DOT) com> wrote:
Quote:
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


Reply With Quote
  #4  
Old   
VK
 
Posts: n/a

Default Re: disable slider onchange - 05-25-2008 , 09:54 AM



On May 25, 5:58 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote:
Quote:
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/scriptaculous/wikis/slider


Reply With Quote
  #5  
Old   
cmgmyr
 
Posts: n/a

Default Re: disable slider onchange - 05-25-2008 , 10:03 AM



On May 25, 10:54*am, VK <schools_r... (AT) yahoo (DOT) com> wrote:
Quote:
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 -
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.


Reply With Quote
  #6  
Old   
VK
 
Posts: n/a

Default Re: disable slider onchange - 05-25-2008 , 10:23 AM



On May 25, 7:03 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote:
Quote:
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.
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()



Reply With Quote
  #7  
Old   
cmgmyr
 
Posts: n/a

Default Re: disable slider onchange - 05-25-2008 , 11:17 AM



On May 25, 11:23*am, VK <schools_r... (AT) yahoo (DOT) com> wrote:
Quote:
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 -
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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.