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

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

Expand Messages
  • Eric Ceres
    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

      =======================================================
    • Show all 6 messages in this topic