Morning,
Thanks for all your help on this so far. I've still got one more problem
that I'm scratching my head over. The cfinclude template app_OUTPUT.cfm
contains HTML formatting. However, when the file #MyFile# is generated, the
HTML doesn't render - I'm actually seeing the raw HTML code in the
Forgot to mention - if I run the template app_OUTPUT.cfm by itself, it
displays with the proper formatting...
: -Original Message-
: From: Les Mizzell [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, October 10, 2002 9:07 AM
: To: CF-Talk
: Subject: RE: cfinclude inside a cffile tag
Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 9:07 AM
To: CF-Talk
Subject: RE: cfinclude inside a cffile tag?
Morning,
Thanks for all your help on this so far. I've still got one more problem
that I'm scratching my head over. The cfinclude template
=Yes
Cfcontent type=text/html
cfoutput#sqloutput#/cfoutput
In this case, cfcontent is superflous as well.
-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 9:28 AM
To: CF-Talk
Subject: RE: cfinclude inside a cffile tag?
Are you trying
: Are you trying to generate a file that gets saved (HTML tags and
: all) to a
: file or do you want to generate a file that gets displayed in the browser
: (and the HTML gets rendered by the browser)?
Neither...
The file is being pushed to the client to be saved as a properly formatted
text
-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:52 AM
To: CF-Talk
Subject: RE: cfinclude inside a cffile tag?
: Are you trying to generate a file that gets saved (HTML tags
cfsavecontent variable=sqlOutput
cfinclude template=app_OUTPUT.cfm
/cfsavecontent
CFSET sqlOutput = ReplaceNoCase(sqlOutput, BR, #Chr(13)##Chr(10)#,
ALL)
CFSET sqlOutput = ReplaceNoCase(sqlOutput, nbsp;, , ALL)
cffile action=WRITE
That did the exact trick!
How much do I owe you
/
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:16 PM
To: CF-Talk
Subject: RE: cfinclude inside a cffile tag?
cfsavecontent variable=sqlOutput
cfinclude template=app_OUTPUT.cfm
/cfsavecontent
CFSET sqlOutput
Use CFSAVECONTENT as in:
CFSAVECONTENT VARIABLE=sqlOutput
CFINCLUDE TEMPLATE=CFOutputApp.cfm
/CFSAVECONTENT
CFFILE ACTION=write
FILE=d:/whatever/myfile
OUTPUT=#sqlOutput#
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
9 matches
Mail list logo