Name

CFSLIDER — Enhanced in ColdFusion 5.0

Synopsis

<CFFORM>
  <CFSLIDER>
  ...
</CFFORM>

Creates a Java slider control for use within a CFFORM block.

Attributes

NAME=" name "

The form-field name for the slider control. Required.

LABEL=" text "

Text to appear with the slider control. Additionally, %value% may be used within the label text to insert the current slider value. If %value% is omitted, the current slider value is output to the right of the label text. Optional.

REFRESHLABEL="Yes|No"

Whether or not the label should be refreshed when the slider moves. Default is Yes.

IMG=" filename "

The filename of an image to appear in the slider groove. Optional.

IMGSTYLE=" style "

The style to use for the image provided in IMG. Valid entries are Centered, Tiled, and Scaled. Optional. The default is Scaled. This attribute is deprecated and no longer functional as of ColdFusion 5.0.

RANGE=" min_value , max_value "

The beginning and ending values (numeric only) for the slider control. Optional. The default is “0,100”.

SCALE=" integer "

The incremental value to use between the values provided by RANGE. Optional. The default is 1.

VALUE=" integer "

The default slider value. Optional. The default is the bottom number in RANGE.

ONVALIDATE=" javascript_function "

A JavaScript validation function that should be executed before the form is submitted. Optional.

MESSAGE=" text "

Text to appear if validation fails. Optional.

ONERROR=" function_name "

The name of a JavaScript function ...

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.