|
ColdFusion 9.0 Resources |
ColdFusion.Slider.setValueDescriptionSets the numeric value of the slider control. Function syntaxColdFusion.Slider.setValue(name, newValue) See alsoColdFusion.Slider.disable, ColdFusion.Slider.enable, ColdFusion.Slider.getSliderObject, ColdFusion.Slider.getValue, ColdFusion.Slider.hide, ColdFusion.Slider.show HistoryColdFusion 9: Added this function Parameters
ReturnsThis function does not return any value. Example<h3>This is an example of the Slider.setValue function. Click the Set Value button to set the pointer to a new value,150.</h3>
<script language="JavaScript" type="text/javascript">
function setvalue(){
ColdFusion.Slider.setValue('sliderID','150');
}
</script>
<br>
<cfform name="form01">
<br/>
<cfslider name="sliderID" format="HTML"
vertical="false" width="350"
value="100" min="0" max="200"
increment="10" tip="true"/>
<cfinput type="button" name="htmlbutton"
value="Set Value" onclick="setvalue()">
</cfform>
|