Slider on change dojo event
<html>
<head>
<link rel="StyleSheet" type="text/css" href="js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/",
parseOnLoad : true
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script>
dojo.require("dijit.form.HorizontalSlider");
</script>
</head>
<body class="tundra">
<div dojoType="dijit.form.HorizontalSlider" name="caffeine"
value="100"
maximum="175"
minimum="2"
style="margin: 5px;width:300px; height: 20px;">
<script type="dojo/method" event="onChange" args="newValue">
alert(newValue);
</script>
</div>
</body>
</html>
Dojo-toolkit.zip( 3,849 k)Related examples in the same category