CFFLUSH Tag - ColdFusion


>> Return to ColdFusion Tag Index

The CFFLUSH tag flushes ColdFusion's output buffer. Normally, Coldfusion waits until the entire web page is built before sending to the web browser. You can use this tag to force ColdFusion to send what it's created so far. By using the optional INTERVAL attribute, you can control (based on the number of bytes) precisely when to do the flush.

Syntax:
  <CFFLUSH
             INTERVAL="integer number of bytes">

IMPORTANT:
Once you use a CFFLUSH tag on a ColdFusion page, from that point on, you cannot use any ColdFusion tags that modify the HTTP header. These include the cfcontent, cfcookie, cfform, cfheader, cfhtmlhead, and cflocation tags.



  CFFLUSH Comments from Adobe LiveDocsLiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags30.htm
Some slightly more accurate info:
http://www.macromedia.com/devnet/server_archive/articles/understanding_progress_meters_cf5.html

However, I have spent all monring trying to use cfflush for a "processing ..." message to NO avail - (IE & preciousTables-sies)

LiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags30.htm
Re using cfflush within a long query:
- You cannot use the cfflush tag within the query tag

- if you're looping over query results, you could use it every so many times through the loop

- If the results are really long, or you have to do something to generate the actual results from the table, you can use CFFLUSH:

<cfquery datasource = "a" query="big_q">
select * from big_table
</cfquery>

//do some calculations
<CFFLUSH>
//finish the rest



LiveDocs Comments - coldfusion - 5.0 - CFML_Reference - Tags30.htm
Can CFFLUSH be used inside a long query to dump data back to the screen?



[Top]


Recommended Books

[Top]

Web Sites

[Top]

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved