The <CFSLIDER> Tag

<CFSLIDER> isn't a big time-saving device like <CFSELECT>, but it's kind of a neat way to enable users to choose a numeric value in a form.

To illustrate, let's say I want to create a form that will let users rate each of my tapes on a scale from 1 to 10. It will look like Figure 11.6.

Figure 11.6. <CFSLIDER> lets users select a number by sliding a JavaScript bar across a range of values.

Tip

<CFSLIDER> absolutely requires a Java-enabled browser to run. If you think your users might not be Java-ready, use a standard SELECT box instead.

To create this page, I used a basic query to get all the tapes in my database, and then created ...

Get Sams Teach Yourself ColdFusion® in 21 Days 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.