O'Reilly logo

Programming ColdFusion by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required