• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFC Output

Explorer ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

I would like to create a component that controls creation of reports in our system. Many of these reports are already pre-formmated in HTML. Is there a way to output HTML from a CFC?
TOPICS
Advanced techniques

Views

213

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

All code in ColdFusion can output content to the browser. They in fact
do it by default unless you assigned the OUTPUT="NO" to the CFFUNCTION.


Rick wrote:
> I would like to create a component that controls creation of reports in our system. Many of these reports are already pre-formmated in HTML. Is there a way to output HTML from a CFC?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2006 Jun 25, 2006

Copy link to clipboard

Copied

LATEST
<cfcomponent>
<cffunction name="myFunc" returntype="string">
<!--- generate the HTML and store it as the string htmlString --->
<cfreturn htmlString>
</cffunction>
</cfcomponent>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation