Login Register

Widget Values [solved]

Switching from Flex, my first widget I have tried out is Slider. I can't seem to get the current value of the widget though.


var slider = dojo.byId.("horizontalSlider");
var currentTime = slider.getValue();

Getting undefined.

Yes I searched on returning value of slider and got nothing.

The key here was that in

The key here was that in order to get at the methods in a dijit widget you need to use dijit.getById("idHere");, not dojo.getById("idHere");