It has to do w/ the fact CFSETTING effects parser processes the page; so
it effects the entire page as a whole.
"When nesting CFSETTING tags, you must match each ENABLECFOUTPUTONLY="Yes
" setting with an ENABLECFOUTPUTONLY="No " setting for ordinary HTML text to
be visible to a user. For example, if you have five ENABLECFOUTPUTONLY="Yes
" statements, you must also have five corresponding ENABLECFOUTPUTONLY="No "
statements for HTML text to be displayed again."
(http://www.allaire.com/cfdocs/CFML_Language_Reference/2_ColdFusion_Tags/lr2
_089.htm)
So no, it's not just a toggle that when you hit off it's off. It's more
the same idea as start and end tags.
Hope it helps,
Raymond B.
P.S. I feel your pain, CF is great but it's like working w/ 3 billion sticky
abstraction layers between you and the control.
-----Original Message-----
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: January 22, 2001 11:56
To: CF-Talk
Subject: Sometimes I get so sick of CF being weak.... please help
In one of my custom tags I need to turn on ENABLECFOUTPUTONLY because
the result of this custom tag will be going inside PRE tags, so I
can't have any extra white space come out of it. Now the page that
uses this tag quit working, becuase the ENABLECFOUTPUTONLY is affecting
the entire request. Doesn't it make sense that it would only affect
the custom tag? Shouldn't that be a separate 'scope'? It is with
variables, why does the cfsetting carry across?
So anyway, I need to turn ENABLECFOUTPUTONLY back off at the end of
the custom tag, I guess. But what if (later on in development) a page makes
use of this tag, and that page already has ENABLECFOUTPUTONLY set to
on? Then the tag will turn it on again, no problem there, but at the
end of the tag it will set ENABLECFOUTPUTONLY to off, totally screwing
up the page that calls it.
Is there a way to detect ENABLECFOUTPUTONLY, so I don't need to flip
it if I don't need to?
I miss Perl...
Thanks for any help.
Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists