HighDots Forums  

Re: disable slider onchange

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: disable slider onchange in the Javascript forum.



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

Default Re: disable slider onchange - 05-25-2008 , 12:36 PM






On May 25, 8:17 pm, cmgmyr <cmg... (AT) gmail (DOT) com> wrote:
Quote:
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.
It is not a Scriptaculous support forum for that visit
http://groups.google.com/group/rubyonrails-spinoffs
- and no, I have no idea what exact relations are between the railed
Ruby, Script.Aculo.us, Prototype.js in relevance to different forums.
Script.Aculo.us links to rubyonrails-spinoffs as its support forum,
this is all see.
From the common programming point of view the code you posted is
intended to disable the slider as soon as it's moved to a new
position. I see no sense in that but it must be because only part of
code is posted. In any case should it be then:
onChange:function(v){
// v contains new slider value (?)
$('slider').setDisabled();
}


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.