Used inside cfform, cfslider lets you place a slider control in a ColdFusion form. A slider control is like a sliding volume control. The slider groove is the area over which the slider moves.
<cfslider name = "name" label = "text" refreshLabel = "Yes" or "No" img = "filename" imgStyle = "style" range = "min_value, max_value" scale = "uinteger" value = "integer" onValidate = "script_name" message = "text" onError = "text" height = "integer" width = "integer" vSpace = "integer" hSpace = "integer" align = "alignment" tickMarkMajor = "Yes" or "No" tickMarkMinor = "Yes" or "No" tickMarkImages = "URL1, URL2, URLn" tickMarkLabels = "Yes" or "No" or or "list" lookAndFeel = "motif" or "windows" or "metal" vertical = "Yes" or "No" grooveColor = "color" bgColor = "color" textColor = "color" font = "font_name" fontSize = "integer" italic = "Yes" or "No" bold = "Yes" or "No" notSupported = "text">
cfapplet, cfinput, cfform, cfselect, cfgrid, cfgridcolumn, cftextinput, cfgridrow, cftree, cfgridupdate, cftreeitem
cfslider requires the client to download a Java applet. This takes time; therefore, using cfslider may be slightly slower than using an HTML form element to retrieve or display the same information. Browsers must be Java-enabled for cfslider to work properly.
|
Note The |
<!--- This example shows how to use cfslider within cfform --->
<html>
<head>
<title>
cfslider Example
</title>
</head>
<body bgcolor = silver>
<h3>cfslider Example</h3>
<p>cfslider, used within a cfform, can provide
additional functionality to Java-enabled browsers.
<p>Try moving the slider back and forth to see the
real-time value change. Then, submit the form to show
how cfslider passes its value on to a new CF template.
<cfif isdefined("form.mySlider") is true>
<h3>You slid to a value of <cfoutput>#mySlider#</cfoutput></h3>
Try again!
</cfif>
<cfform action = "cfslider.cfm" method = "POST" enablecab = "Yes">
1 <cfslider name = "mySlider" value = "12" label = "Actual Slider Value "
range = "1,100" align = "BASELINE"
message = "Slide the bar to get a value between 1 and 100" height = "20"
width = "150" font = "Verdana" bgColor = "Silver" grooveColor = "Lime"
bold = "No" italic = "Yes" refreshLabel = "Yes"> 100
<p><input type = "Submit" name = "" value = "Show the Result">
</cfform>
</body>
</html>
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0