<HTML>
<HEAD><TITLE>&lt;CFFLUSH&gt; Example</TITLE></HEAD>
<BODY>
  
  <!--- Initial Message --->
  <P><STRONG>Please Wait</STRONG><BR>
  We are processing your order.<BR>
  This process may take up to several minutes.<BR>
  Please do not Reload or leave this page until the process is complete.<BR>
  
  <!--- Flush the page output buffer --->
  <!--- The above code is sent to the browser right now --->
  <CFFLUSH>
  
  <!--- Time-consuming process goes here ---> 
  <!--- Here, ColdFusion is forced to wait for 5 seconds --->
  <!--- Do not use this CFLOOP technique in actual code! --->
  <CFSET InitialTime = Now()>
  <CFLOOP CONDITION="DateDiff('s', InitialTime, Now()) LT 5"></CFLOOP>
  
  <!--- Display "Success" message --->
  <P><STRONG>Thank You.</STRONG><BR>
  Your order has been processed.<BR>
  
</BODY>
</HTML>