Reset Before Sending Non-HTML Content

If you are using ColdFusion to generate non-HTML output (for example, comma-delimited data for use in Microsoft Excel, or RTF output for use in Microsoft Word) then extraneous output (or whitespace) could prove problematic. As such, you will likely need to make sure that no other data is sent to the client, including any data generated before the tag. Fortunately, lets you do this easily – just use the RESET attribute. Set RESET=”Yes”, and any data generated before will be discarded. (Applies to: ColdFusion 4 (or later))

Leave a Reply