[Dojo-interest] onchange event and slider
Gary Acord
gary at acordinfo.com
Wed Jun 10 19:17:13 EDT 2009
Shouldn't it be onChange and not onchange?
Cheers,
G
On Jun 10, 2009, at 5:55 PM, John Cartwright <john.c.cartwright at comcast.net
> wrote:
> Hello All,
>
> I have a slider defined w/in a widget template like this:
>
> <div id="slider" dojoType="dijit.form.HorizontalSlider" name="slider"
> dojoAttachPoint='slider'
> value="100"
> maximum="100"
> minimum="0"
> pageIncrement="100"
> showButtons="true"
> intermediateChanges="true"
> slideDuration="500"
> style="width:200px; height: 20px;">
> </div>
>
>
>
> Then in the widget's postCreate function, I'm attaching a function to
> the onChange event:
>
> dojo.connect(this.slider, 'onchange',function()
> {console.log(event.target.value);});
>
>
> However, the event never seems to be caught. I've confirmed that the
> reference to "this.slider" is valid - can anyone point out what I'm
> doing wrong here? Other widgets w/in the template seem to work fine
> using a similar approach.
>
> Thanks!
>
> --john
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
More information about the Dojo-interest
mailing list