Providing Visual Feedback To The User - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

You must use the
days, hours, minutes, seconds format). For example, the following code caches the results of
getting the contents of the Employees table of the CompanyInfo data source for one hour.
<cfquery datasource="CompanyInfo" name="master"
cachedWithin=#CreateTimeSpan(0,1,0,0)#>
SELECT * FROM Employees
</cfquery>

Providing visual feedback to the user

If an application might take a while to process data, it is useful to provide visual feedback to
indicate that something is happening so the user does not assume that there is a problem and
request the page again. Although doing this does not optimize your application's processing
efficiency, it does make the application appear more responsive.
You can use the
and Formatting Data," on page
You can also use the
the technical article "Understanding Progress Meters in ColdFusion 5" at www.macromedia.com/
v1/handlers/index.cfm?id=21216&method=full. (Although this article was written for
ColdFusion 5, it also applies to ColdFusion MX.)
284
Chapter 13: Designing and Optimizing a ColdFusion Application
function to specify the
CreateTimeSpan
tag to return partial data to a user, as shown in
cfflush
559.
tag to create a progress bar. For information on this technique, see
cfflush
attribute value (in
cachedWithin
Chapter 26, "Retrieving

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents