could you explain why it would be a good idea to call a custom tag
within a cfoutput tag?
I didn't say it was a good idea. Rather I was asking why it would be a
bad idea?
--
___
REUSE CODE! Use custom tags;
See
Not sure! could you explain why it would be a good idea to
call a custom tag within a cfoutput tag?
One reason that occurs to me offhand would be if you're using CFSETTING to
only output things that are explicitly within CFOUTPUT. I'm not sure why
people think it's a bad idea to use CFML
it's not a good idea to call any tag within a CFOUTPUT tag
Why not gracious Lord?
Not sure! could you explain why it would be a good idea to call a custom tag
within a cfoutput tag?
~|
Logware (www.logware.us): a new and
How about:
cfoutput query=myQuery
tr
td#id#/td
td#name#/td
tdl:link page=view id=#id#view/l:link/td
/tr
/cfoutput
Some hypothetical context: the site uses SEF urls, and the l:link tag
takes care of creating the A tag with the SEF url embedded.
cheers,
barneyb
On Wed, 23 Mar 2005
The standard answer for this question is Did you check any application.cfm
files?
-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005 4:10 PM
To: CF-Talk
Subject: Whitespace Woes
CF5/IIS5
I have a CFML tag constructed to produce as little white
CFOUTPUT carries across includes and tags for enableCFOUTPUTonly
processing. So if the tag is called within a CFOUTPUT block, your
CFSETTING tag will have no effect. Since that info is outside the
scope of what the tag can possibly know, you're better off skipping
CFSETTING and only using
Application.cfm is entirely within a cfsilent block as well.
- Original Message -
From: Gaulin, Mark [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, March 22, 2005 2:16 PM
Subject: RE: Whitespace Woes
The standard answer for this question is Did you check any
I think that's it. Thanks Barney.
- Original Message -
From: Barney Boisvert [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, March 22, 2005 2:18 PM
Subject: Re: Whitespace Woes
CFOUTPUT carries across includes and tags for enableCFOUTPUTonly
processing. So
CF5/IIS5
I have a CFML tag constructed to produce as little white space as
possible -
another way is to use this custom tag: StripWhiteSpace.cfm
!--- = ---
CFSETTING ENABLECFOUTPUTONLY=YES!--- Suspend whitespace output ---
Ironically, this tag has exactly the problem I illustrated, and
consequently will usually end up rendering a bunch of extra whitespace
itself.
cheers,
barneyb
On Tue, 22 Mar 2005 16:34:08 -0400, Andrew Grosset [EMAIL PROTECTED] wrote:
CF5/IIS5
I have a CFML tag constructed to produce as
=.../cfoutput
/cfif
Can I capture the output of that called tag and place it into the tagout
string variable?
- Original Message -
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, March 22, 2005 2:25 PM
Subject: Re: Whitespace Woes
I think that's
CFSAVECONTENT will do exactly what you need.
If the output is going to take a lot of steps to create, you might
want to look at not using raw string concatenation. Check
http://www.barneyb.com/blog/archives/2004_12.jsp#000250 for a couple
methods for avoiding it.
cheers,
barneyb
On Tue, 22 Mar
Ironically, this tag has exactly the problem I illustrated, and
consequently will usually end up rendering a bunch of extra whitespace
itself.
cheers,
barneyb
Hmmm
I can't give you an example but using MX6.1 and with strengthmode on maximum it
will eliminate 99% of whitespace and output
If you call the tag within a CFOUTPUT tag, then you'll get a few extra
lines of whitespace above the whitespace-suppressed content. The
actual suppression won't be affected, but the tag itself will generate
a few extra lines. If it's not within a CFOUTPUT tag, then it won't
put those extra few
me thinks it's not a good idea to call any tag within a CFOUTPUT tag...at least
I'd try not to if at all possible.
Andrew.
If you call the tag within a CFOUTPUT tag, then you'll get a few
extra
lines of whitespace above the whitespace-suppressed content. The
actual suppression won't be
In general, I'd agree. But that's not a reason to make your custom
tags dependant on that fact, particularly one whose purpose is to
reduce whitespace.
http://www.spike.org.uk/blog/index.cfm?mode=entryentry=CC663650-D565-E33F-3DA8032FED9A0DC8
Spike's got a nice method for ensuring that your
it's not a good idea to call any tag within a CFOUTPUT tag
Why not gracious Lord?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
I've had success when outputting CSV data w/ using cfcontent, and then cfabort to
avoid outputting any junk.
[EMAIL PROTECTED] 10/24/02 05:08PM
Did you check for something in application.cfm?
-Original Message-
From: Will Stalder [mailto:skith_diphi;hotmail.com]
Sent: Thursday,
Quick shot in the dark (I have a meeting to run to) but I think that having
the CFOUTPUT on a line of it's own could be causing your problem. Try
something like this:
CFOUTPUThtml
Instead of :
CFOUTPUT
html
Let me know if that works (or at least cuts down on your whitespace).
Remember, the
Try this:
1 CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE=YesCFSETTING
ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=NoCFIF NOT
ISDEFINED(do)CFOUTPUThtmlbodyform/form/body/html/CFOUTPUT
CFELSEIF do EQ xmlCFOUTPUT?xml version=1.0?!DOCTYPE Foo SYSTEM
http://www.foo.com/bar.dtd;
2 Foo/Foo
3 /CFOUTPUT
4 /CFIF
5
Just for the record, CFMX does not add the space. I had some problems
recently developing something on CFMX and uploading to a CF5 server. :
grumbles:
What you may want to try is to generate everything as a variable and then
output the variable.
I'm not sure if this will help with the
Try wrapping the entire thing in a cfsavecontent tag and then trim the output:
CFSAVECONTENT VARIABLE=XMLOUTPUT
CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE=YesCFSETTING
ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=No
CFIF NOT ISDEFINED(do)
CFOUTPUT
htmlbodyform/form/body/html
/CFOUTPUT
CFELSEIF do EQ
What is in the Application.cfm file doing to you? Could the whitespace get added in
there?
Jerry Johnson
[EMAIL PROTECTED] 10/24/02 03:13PM
I'm having with trouble with ColdFusion and extraneous whitespace. And
yes, I've done my Google searching.
The problem is that I'm trying to output an
Try this:
CFSETTING ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=No
CFIF NOT ISDEFINED(do)
CFOUTPUT
htmlbodyform/form/body/html
/CFOUTPUT
CFELSEIF do EQ xml
Cfontent type=text/xmlCFOUTPUT?xml version=1.0?!DOCTYPE Foo
SYSTEM http://www.foo.com/bar.dtd; Foo/Foo/CFOUTPUT
Will Stalder wrote:
I'm having with trouble with ColdFusion and extraneous whitespace.
Which version?
Jochem
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
I feel you pain my brother. Put it all on one line.
-Original Message-
From: Will Stalder [mailto:skith_diphi;hotmail.com]
Sent: Thursday, October 24, 2002 12:13 PM
To: CF-Talk
Subject: whitespace woes
I'm having with trouble with ColdFusion and extraneous whitespace. And
yes, I've
Any chance the space is being added in the Application.cfm file?
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-Original Message-
From: Will Stalder [mailto:skith_diphi;hotmail.com]
Sent: Thursday, October
If you've got an application.cfm file that's prepending to your xml output
page, you might want to wrap the entire application.cfm in
cfsilent/cfsilent -- and make sure there's no extra carriage returns at
the top or bottom.
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
Did you check for something in application.cfm?
-Original Message-
From: Will Stalder [mailto:skith_diphi;hotmail.com]
Sent: Thursday, October 24, 2002 3:13 PM
To: CF-Talk
Subject: whitespace woes
I'm having with trouble with ColdFusion and extraneous whitespace. And
yes, I've done my
Do you have an Application.cfm file that is being run perhaps?
On Thursday, Oct 24, 2002, at 12:13 US/Pacific, Will Stalder wrote:
I'm having with trouble with ColdFusion and extraneous whitespace. And
yes, I've done my Google searching.
The problem is that I'm trying to output an XML file,
As a few people suggested, I played around with the application.cfm file - I
had not realized that it was appended to the beginning of my regular .cfm
file.
Interestingly enough, application.cfm didn't contain any excess spaces, but
it did have several non-outputting tags each on their own
To: CF-Talk
Subject: RE: whitespace woes
Did you check for something in application.cfm?
-Original Message-
From: Will Stalder [mailto:skith_diphi;hotmail.com]
Sent: Thursday, October 24, 2002 3:13 PM
To: CF-Talk
Subject: whitespace woes
I'm having with trouble with ColdFusion
If you are using CF 4.5 or above you can use the cfsilent tag to not
output anything.
Clint
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
33 matches
Mail list logo