473,380 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,380 software developers and data experts.

disable slider onchange

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
Jun 27 '08 #1
6 3067
VK
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?
Jun 27 '08 #2
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
Jun 27 '08 #3
VK
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
Jun 27 '08 #4
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.
Jun 27 '08 #5
VK
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()

Jun 27 '08 #6
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.
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bob Bedford | last post by:
I've this code: function checkdate(FormSubmit){ alert(document.getElementById('Mois').value); if(eval(document.getElementById('Mois'))>0 && eval(document.getElementById('Annee'))>0){...
30
by: Blnukem | last post by:
Hi All I'm new to javascript and was wondering if someone can help me with this I want to disable my second and third drop-box if the first one is selected to "Closed" I think I'm close but just...
2
by: bigrich | last post by:
I'm a beginner to javascript and need help. I've searched the forum but can't piece the answer together. I need to be able to uncheck and disable a checkbox based on the option selected in a...
1
by: Israel | last post by:
The problem: I want to know, definitively when a slider loses focus after a user has started sliding and hasn't released the mouse yet. It appears that this is captured with the WM_ACTIVATEAPP...
2
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter...
1
by: s.chelliah | last post by:
Hi, I am trying to use javascript, div tag and radio button to disable/enable a text box. It works fine in netscape and firefox, but in IE, the text box is not disabled when the user checks the...
9
by: surf_doggie | last post by:
Im not sure if this is the group to post in, if anyone knows a more appropriate one please let me know. Please consider the following example of a feature most all browsers have that I would...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.