Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] re. setValue of the Yahoo Slider control

Expand Messages
  • Eric Ceres
    This is most likely a scope issue, sliderSize is defined withing sliderInit only so sliderSize is not set in initSliderVals. Try passing sliderSize as a
    Message 1 of 6 , Apr 4, 2006
    • 0 Attachment
      This is most likely a scope issue, sliderSize is defined withing sliderInit only so sliderSize is not set in initSliderVals.  Try passing sliderSize as a parameter in the initSliderVals() method
       
      in other words:
       

                         function sliderInit() {

                              sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                              sliderSize._onChange = handleSizeChange;

       

                              initSliderVals(sliderSize);            

                         }

       

                         function initSliderVals(sliderSize){

                              sliderSize.setValue(100);

                         }

      ----- Original Message ----
      From: "Arora, Ramanjeet (RBI-UK)" <ramanjeet.arora@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Tuesday, April 4, 2006 5:49:26 AM
      Subject: [ydn-javascript] re. setValue of the Yahoo Slider control

      I am new to the group list.

       

      I am not able to set the setValue of the Yahoo Slider control: using Code:

                         function sliderInit() {

                              sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                              sliderSize._onChange = handleSizeChange;

       

                              initSliderVals();            

                         }

       

                         function initSliderVals(){

                              sliderSize.setValue(100);

                         }

       

      Help…

       

      Regards / Ramanjeet Arora

      IS Business Projects Group

      Developer – Egi

      Phone:  +44 2079111711

      Mobile:  +44 7950599601

       



      r===================== DISCLAIMER ======================
      This message is intended only for the use of the person(s)
      (\ "Intended Recipient\ ") to whom it is addressed. It may contain
      information, which is privileged and confidential. Accordingly
      any dissemination, distribution, copying or other use of this
      message or any of its content by any person other than the Intended
      Recipient may constitute a breach of civil or criminal law and is
      strictly prohibited. If you are not the Intended Recipient, please
      contact the sender as soon as possible.

      Reed Business Information Ltd. and its subsidiary companies
      Tel: +44 (0)20 8652 3500

      =======================================================
    • François Dussert
      or just do var sliderSize; before your functions _____ De : ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] De la part de Eric Ceres
      Message 2 of 6 , Apr 4, 2006
      • 0 Attachment
        or just do
        var sliderSize;
        before your functions


        De : ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] De la part de Eric Ceres
        Envoyé : mardi 4 avril 2006 14:35
        À : ydn-javascript@yahoogroups.com
        Objet : Re: [ydn-javascript] re. setValue of the Yahoo Slider control

        This is most likely a scope issue, sliderSize is defined withing sliderInit only so sliderSize is not set in initSliderVals.  Try passing sliderSize as a parameter in the initSliderVals() method
         
        in other words:
         

                           function sliderInit() {

                                sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                                sliderSize._onChange = handleSizeChange;

         

                                initSliderVals(sliderSize);            

                           }

         

                           function initSliderVals(sliderSize){

                                sliderSize.setValue(100);

                           }

        ----- Original Message ----
        From: "Arora, Ramanjeet (RBI-UK)" <ramanjeet.arora@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Tuesday, April 4, 2006 5:49:26 AM
        Subject: [ydn-javascript] re. setValue of the Yahoo Slider control

        I am new to the group list.

         

        I am not able to set the setValue of the Yahoo Slider control: using Code:

                           function sliderInit() {

                                sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                                sliderSize._onChange = handleSizeChange;

         

                                initSliderVals();            

                           }

         

                           function initSliderVals(){

                                sliderSize.setValue(100);

                           }

         

        Help…

         

        Regards / Ramanjeet Arora

        IS Business Projects Group

        Developer – Egi

        Phone:  +44 2079111711

        Mobile:  +44 7950599601

         



        r===================== DISCLAIMER ======================
        This message is intended only for the use of the person(s)
        (\ "Intended Recipient\ ") to whom it is addressed. It may contain
        information, which is privileged and confidential. Accordingly
        any dissemination, distribution, copying or other use of this
        message or any of its content by any person other than the Intended
        Recipient may constitute a breach of civil or criminal law and is
        strictly prohibited. If you are not the Intended Recipient, please
        contact the sender as soon as possible.

        Reed Business Information Ltd. and its subsidiary companies
        Tel: +44 (0)20 8652 3500

        =======================================================
      • Steve Neweissman
        This happened to me too. I found that calling sliderSize.unlock() did the trick. Stephen Neweissman Internal Tool Developer
        Message 3 of 6 , Apr 4, 2006
        • 0 Attachment
          This happened to me too.  I found that calling sliderSize.unlock() did the trick.
           
          Stephen Neweissman
          Internal Tool Developer
          NewCars.com

          701 Santa Monica Blvd. Suite 310

          Santa Monica , CA90401

          Phone: 310.394.6430

          Fax: 310.394.6376

          E-mail: steve@...

           


          From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Arora, Ramanjeet (RBI-UK)
          Sent: Tuesday, April 04, 2006 2:49 AM
          To: ydn-javascript@yahoogroups.com
          Subject: [ydn-javascript] re. setValue of the Yahoo Slider control

          I am new to the group list.

           

          I am not able to set the setValue of the Yahoo Slider control: using Code:

                             function sliderInit() {

                                  sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                                  sliderSize.onChange = handleSizeChange;

           

                                  initSliderVals();            

                             }

           

                             function initSliderVals(){

                                  sliderSize.setValue(100);

                             }

           

          Help…

           

          Regards / Ramanjeet Arora

          IS Business Projects Group

          Developer – Egi

          Phone:  +44 2079111711

          Mobile:  +44 7950599601

           



          r===================== DISCLAIMER ======================
          This message is intended only for the use of the person(s)
          (\"Intended Recipient\") to whom it is addressed. It may contain
          information, which is privileged and confidential. Accordingly
          any dissemination, distribution, copying or other use of this
          message or any of its content by any person other than the Intended
          Recipient may constitute a breach of civil or criminal law and is
          strictly prohibited. If you are not the Intended Recipient, please
          contact the sender as soon as possible.

          Reed Business Information Ltd. and its subsidiary companies
          Tel: +44 (0)20 8652 3500

          =======================================================
        • Steve Neweissman
          This happened to me too. I found that calling sliderSize.unlock() did the trick. Stephen Neweissman Internal Tool Developer
          Message 4 of 6 , Apr 4, 2006
          • 0 Attachment
            This happened to me too.  I found that calling sliderSize.unlock() did the trick.
             
            Stephen Neweissman
            Internal Tool Developer
            NewCars.com

            701 Santa Monica Blvd. Suite 310

            Santa Monica , CA90401

            Phone: 310.394.6430

            Fax: 310.394.6376

            E-mail: steve@...

             


            From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Arora, Ramanjeet (RBI-UK)
            Sent: Tuesday, April 04, 2006 2:49 AM
            To: ydn-javascript@yahoogroups.com
            Subject: [ydn-javascript] re. setValue of the Yahoo Slider control

            I am new to the group list.

             

            I am not able to set the setValue of the Yahoo Slider control: using Code:

                               function sliderInit() {

                                    sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                                    sliderSize.onChange = handleSizeChange;

             

                                    initSliderVals();            

                               }

             

                               function initSliderVals(){

                                    sliderSize.setValue(100);

                               }

             

            Help…

             

            Regards / Ramanjeet Arora

            IS Business Projects Group

            Developer – Egi

            Phone:  +44 2079111711

            Mobile:  +44 7950599601

             



            r===================== DISCLAIMER ======================
            This message is intended only for the use of the person(s)
            (\"Intended Recipient\") to whom it is addressed. It may contain
            information, which is privileged and confidential. Accordingly
            any dissemination, distribution, copying or other use of this
            message or any of its content by any person other than the Intended
            Recipient may constitute a breach of civil or criminal law and is
            strictly prohibited. If you are not the Intended Recipient, please
            contact the sender as soon as possible.

            Reed Business Information Ltd. and its subsidiary companies
            Tel: +44 (0)20 8652 3500

            =======================================================
          • François Dussert
            you must put the setValue in a setTimeout _____ De : ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] De la part de Steve Neweissman
            Message 5 of 6 , Apr 4, 2006
            • 0 Attachment
              you must put the setValue in a setTimeout


              De : ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] De la part de Steve Neweissman
              Envoyé : mardi 4 avril 2006 17:52
              À : ydn-javascript@yahoogroups.com
              Objet : RE: [ydn-javascript] re. setValue of the Yahoo Slider control

              This happened to me too.  I found that calling sliderSize.unlock() did the trick.
               
              Stephen Neweissman
              Internal Tool Developer
              NewCars.com

              701 Santa Monica Blvd. Suite 310

              Santa Monica , CA90401

              Phone: 310.394.6430

              Fax: 310.394.6376

              E-mail: steve@...

               


              From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Arora, Ramanjeet (RBI-UK)
              Sent: Tuesday, April 04, 2006 2:49 AM
              To: ydn-javascript@yahoogroups.com
              Subject: [ydn-javascript] re. setValue of the Yahoo Slider control

              I am new to the group list.

               

              I am not able to set the setValue of the Yahoo Slider control: using Code:

                                 function sliderInit() {

                                      sliderSize = YAHOO.widget.Slider.getHorizSlider('sliderSizeBG', 'sliderSizeThumb', 0, 100);

                                      sliderSize.onChange = handleSizeChange;

               

                                      initSliderVals();            

                                 }

               

                                 function initSliderVals(){

                                      sliderSize.setValue(100);

                                 }

               

              Help…

               

              Regards / Ramanjeet Arora

              IS Business Projects Group

              Developer – Egi

              Phone:  +44 2079111711

              Mobile:  +44 7950599601

               



              r===================== DISCLAIMER ======================
              This message is intended only for the use of the person(s)
              (\"Intended Recipient\") to whom it is addressed. It may contain
              information, which is privileged and confidential. Accordingly
              any dissemination, distribution, copying or other use of this
              message or any of its content by any person other than the Intended
              Recipient may constitute a breach of civil or criminal law and is
              strictly prohibited. If you are not the Intended Recipient, please
              contact the sender as soon as possible.

              Reed Business Information Ltd. and its subsidiary companies
              Tel: +44 (0)20 8652 3500

              =======================================================
            Your message has been successfully submitted and would be delivered to recipients shortly.