Login Register

HorizontalSlider setValue

I am tying to use a HorizontalSlider.
I build it like:

<div id="TimeSlide"
              dojotype="dijit.form.HorizontalSlider"
              value="<{$block.current}>"
              minimum="<{$block.first}>"
              maximum="<{$block.last}>"
              intermediateChanges="false"
              pageIncrement="60"
              showButtons="true"
              clickSelect='true'

              onChange="setEventTime(arguments[0])";
              style='margin-top:8px;'
              >
 </div>

This works, and it will fire the event. What I can't do is call a method setValue, or programatically set the value.

I've tried:

dojo.byId("TimeSlide").setValue(event_time);

and
dojo.byId("TimeSlide").value = event_time; ( I get, no such function)

How do I set the time and have it reflect in the widget? (appears to do nothing really)
Thanks for any help.

Dave

Never mind

I realized I need:

dijit.byId instead of dojo.byId

Sorry to clutter the forum

Dave