disable slider onchange

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cmgmyr

    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','slide r',
    {
    axis:'horizonta l',
    sliderValue: 1,
    range: $R(1, 100),
    alignY:0,
    values: [<?php echo $values ?>],
    onSlide:functio n(v){
    onSlide(v)
    },
    onChange:functi on(v){
    onChange(v)
    }
    });

    After my onChange(v) function, I want to disable the slider, how can I
    do this?

    Thanks in advance,
    -Chris
  • VK

    #2
    Re: disable slider onchange

    On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
    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','slide r',
    {
    axis:'horizonta l',
    sliderValue: 1,
    range: $R(1, 100),
    alignY:0,
    values: [<?php echo $values ?>],
    onSlide:functio n(v){
    onSlide(v)
    },
    onChange:functi on(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?

    Comment

    • cmgmyr

      #3
      Re: disable slider onchange

      On May 24, 5:06 pm, VK <schools_r...@y ahoo.comwrote:
      On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
      >
      >
      >
      >
      >
      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','slide r',
              {
                      axis:'horizonta l',
                      sliderValue: 1,
                      range: $R(1, 100),
                      alignY:0,
                      values: [<?php echo $values ?>],
                      onSlide:functio n(v){
                              onSlide(v)
                      },
                      onChange:functi on(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

      Comment

      • VK

        #4
        Re: disable slider onchange

        On May 25, 5:58 pm, cmgmyr <cmg...@gmail.c omwrote:
        On May 24, 5:06 pm, VK <schools_r...@y ahoo.comwrote:
        >
        >
        >
        On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
        >
        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','slide r',
        {
        axis:'horizonta l',
        sliderValue: 1,
        range: $R(1, 100),
        alignY:0,
        values: [<?php echo $values ?>],
        onSlide:functio n(v){
        onSlide(v)
        },
        onChange:functi on(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:

        Comment

        • cmgmyr

          #5
          Re: disable slider onchange

          On May 25, 10:54 am, VK <schools_r...@y ahoo.comwrote:
          On May 25, 5:58 pm, cmgmyr <cmg...@gmail.c omwrote:
          >
          >
          >
          >
          >
          On May 24, 5:06 pm, VK <schools_r...@y ahoo.comwrote:
          >
          On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
          >
          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','slide r',
                  {
                          axis:'horizonta l',
                          sliderValue: 1,
                          range: $R(1, 100),
                          alignY:0,
                          values: [<?php echo $values ?>],
                          onSlide:functio n(v){
                                  onSlide(v)
                          },
                          onChange:functi on(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:functi on(v){
          onChange(v)
          $('slider').set Disabled = true
          }
          Doesn't work.

          Comment

          • VK

            #6
            Re: disable slider onchange

            On May 25, 7:03 pm, cmgmyr <cmg...@gmail.c omwrote:
            On May 25, 10:54 am, VK <schools_r...@y ahoo.comwrote:
            >
            >
            >
            On May 25, 5:58 pm, cmgmyr <cmg...@gmail.c omwrote:
            >
            On May 24, 5:06 pm, VK <schools_r...@y ahoo.comwrote:
            >
            On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
            >
            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','slide r',
            {
            axis:'horizonta l',
            sliderValue: 1,
            range: $R(1, 100),
            alignY:0,
            values: [<?php echo $values ?>],
            onSlide:functio n(v){
            onSlide(v)
            },
            onChange:functi on(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:
            "setDisable d (none) Will set the slider to the disabled state
            (disabled = true)"

            So:

            $('slider').set Disabled()

            Comment

            • cmgmyr

              #7
              Re: disable slider onchange

              On May 25, 11:23 am, VK <schools_r...@y ahoo.comwrote:
              On May 25, 7:03 pm, cmgmyr <cmg...@gmail.c omwrote:
              >
              >
              >
              >
              >
              On May 25, 10:54 am, VK <schools_r...@y ahoo.comwrote:
              >
              On May 25, 5:58 pm, cmgmyr <cmg...@gmail.c omwrote:
              >
              On May 24, 5:06 pm, VK <schools_r...@y ahoo.comwrote:
              >
              On May 24, 9:58 pm, cmgmyr <cmg...@gmail.c omwrote:
              >
              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','slide r',
                      {
                              axis:'horizonta l',
                              sliderValue: 1,
                              range: $R(1, 100),
                              alignY:0,
                              values: [<?php echo $values ?>],
                              onSlide:functio n(v){
                                      onSlide(v)
                              },
                              onChange:functi on(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:
              "setDisable d (none)   Will set the slider to the disabled state
              (disabled = true)"
              >
              So:
              >
              $('slider').set Disabled()- 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:functi on(v){
              onChange(v)
              $('slider').set Disabled()
              }
              But it didn't work.

              Comment

              Working...