• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cfcontent

Synopsis

<cfcontent>

Sends content of the specified media type to the browser. Content may be dynamically generated by ColdFusion or come from a file. The cfcontent tag is often used to send files stored above the web root directory to the browser or to generate non-HTML content for other clients, such as wireless devices (cell phones, PDAs, etc.).

Attributes

type=" MIME_type_and_or_charset "

The MIME type and/or character set for the content to be sent to the browser. charset lets you specify a Java character set to use for the encoding. The most common character sets are UTF-8 (the default), UTF-16, UTF-16BE, UTF-16LE, US-ASCII, and ISO-8859-1. You may use any character set supported by your JRE. If you want to specify a MIME type and a character set, delimit them with a space or a semicolon: type="text/html; charset=utf-8". Required unless file or reset is specified.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint