Spec-Zone.ru › ColdFusion

cfflush

Flushes currently available data to the client.

<cfflush>

cfflush();

  • CF5+
  • Lucee
  • BL 1.0.0+
  • 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.

    Compatibility

    BoxLang:

    Version 1.0.0+ <bx:flush> in BoxLang

    Examples
    Sample code using the cfflush tag

    Simple Script Example

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

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

    Simple Tag Example

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

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

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/cfflush

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API