cfflush

Flushes currently available data to the client.

  <cfflush>

 cfflush();

Attribute Reference

interval numeric

Flushes output each time this number of bytes becomes
available. HTML headers, and data that is already
available when the tag is executed, are omitted from the
count.

Examples
Sample code using the cfflush tag

Outputs 'foo' to the browser approximately 1 second before 'bar'

writeOutput( "<div>foo</div>" ); 
 cfflush(); 
 sleep( 1000 ); 
 writeOutput( "<div>bar</div>" );

Outputs 'foo' to the browser approximately 1 second before 'bar'

<div>foo</div> 
 <cfflush /> <cfsleep time="1000" /> 
 <div>bar</div>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub