That isn't the same as displaying the output in the CFC. Creating and
returning output is fine; displaying it with output="true" is almost
always a bad idea.
--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/
On 6 August 2010 03:10, Mike Kear wrote:
>
> There are reasons to us
>Anytime I try to put CFSILENT or CFSETTING inside the CFFUNCTION is chokes
>and can't find the end of the .
Hi Robert,
Does the following cause the above error?
#now()#
1
0
I also placed the functions within a CFC, and invoked each, and, like Steven,
saw no error w/ cfsile
There are reasons to use CFCs to create output.For example i had an
application that required an output of a quite large XML file made up of
maybe 50 fragments of XML, out of a possible 300 or so specially formatted
fragments.Each occasion the XML was created, the logic CFC would call
th
On Thu, Aug 5, 2010 at 7:13 AM, Robert Harrison
wrote:
> I've moved output function into CFC's; thus I'm using output="true". Only
> problem is the CFC is outputting whitespace where all the logic is now.
>
> How can I suppress the white space in an output CFC?
Write the CFC entirely in cfscript
>The general consensus is that CFCs should be used primarily to encapsulate
>logic, and data retrieval. If you want to output something it really should
>be in a CFM page, or a custom tag.
>
>
Man, consensus scares me. :)
Will
~~
> The general consensus is that CFCs should be used primarily to encapsulate
logic, and data retrieval.
I think that's my consensus now also. Thought I'd be fancy and write one CFC
to contain an entire module; logic and output components. Apparently output
is best left in the CMF pages.
Robert
The general consensus is that CFCs should be used primarily to encapsulate
logic, and data retrieval. If you want to output something it really should
be in a CFM page, or a custom tag.
andy
-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com]
Sent: Thursday, A
uppressing whitespace from CFCs
Robert,
The best idea is NOT to use output=true if the whitespace is an issue.
It's
as simple as that. Create your content, save it to a var and pass back
the
var. You seem to getting upset that your cfc is doing what it's told to
do.
On Thu, Aug 5, 2010
Robert,
The best idea is NOT to use output=true if the whitespace is an issue. It's
as simple as that. Create your content, save it to a var and pass back the
var. You seem to getting upset that your cfc is doing what it's told to do.
On Thu, Aug 5, 2010 at 11:20 AM, Robert Harrison wrote:
>
I'm running out of ideas. My output is in a CFFUNCTION in a CFC.
Anything I wrap around CFINVOKE on the page does not affect what's inside
the CFC and it's still gives whitespace.
Anytime I try to put CFSILENT or CFSETTING inside the CFFUNCTION is chokes
and can't find the end of the .
This i
I believe the following will work ---
Logic stuff in here.
etc . your ourput
stuff goes here.
Then in your calling page you have :
#myoutput#
This way you're not outputting code directly from the CFC, only generating
a string of output tags, which you're going to use in the call
Ya, sorry. I never use output=true unless I actually want the output.
On Thu, Aug 5, 2010 at 11:10 AM, Robert Harrison wrote:
>
> Apparently you cannot use CFSILENT or CFSETTING inside a function at all.
> Using either of these tags in the function give me the following error:
>
>
> The start
Apparently you cannot use CFSILENT or CFSETTING inside a function at all.
Using either of these tags in the function give me the following error:
The start tag must have a matching end tag. An explicit end tag can be
provided by adding . If the body of the tag is empty, you can
use the shortcut
My first idea is that output="true" is a bad idea exactly for the reasons you
brought up - ie excessive white space.
That said, you could use a udf like htmlCompressFormat
(http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=812) on your final
output. That ought to eliminate the extra whit
]
Sent: Thursday, August 05, 2010 10:15 AM
To: cf-talk
Subject: RE: Suppressing whitespace from CFCs
Your non-output code here!
-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com]
Sent: Thursday, August 05, 2010 10:14 AM
To: cf-talk
Subject: Suppressing whitespace
There's a couple of ways.
(still outputs stuff within
though)
On Thu, Aug 5, 2010 at 10:13 AM, Robert Harrison wrote:
>
> I've moved output function into CFC's; thus I'm using output="true". Only
> problem is the CFC is outputting whitespace where all the logic is now.
>
> How can I sup
Your non-output code here!
-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com]
Sent: Thursday, August 05, 2010 10:14 AM
To: cf-talk
Subject: Suppressing whitespace from CFCs
I've moved output function into CFC's; thus I'm using output="true". Only
problem is th
17 matches
Mail list logo