> 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 with
>>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 http://www.contentbox.com/claude/customtags/
How about:
#id#
#name#
view
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 23:26:25 -0400, Andrew Grosset <[EMAIL PROTECTED]> wrote:
> >>>it's not a good idea to cal
>>>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 c
>>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.
~~
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=entry&entry=CC663650-D565-E33F-3DA8032FED9A0DC8
Spike's got a nice method for ensuring that your tag
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
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 li
>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 ou
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
ssage -
From: "Jim McAtee" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Tuesday, March 22, 2005 2:25 PM
Subject: Re: Whitespace Woes
>I think that's it. Thanks Barney.
>
> - Original Message -
> From: "Barney Boisvert" <[EMAIL PROTECT
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
>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
I think that's it. Thanks Barney.
- Original Message -
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Tuesday, March 22, 2005 2:18 PM
Subject: Re: Whitespace Woes
> CFOUTPUT carries across includes and tags for enableCFOUTPUTon
Application.cfm is entirely within a block as well.
- Original Message -
From: "Gaulin, Mark" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Tuesday, March 22, 2005 2:16 PM
Subject: RE: Whitespace Woes
> The standard answer for this question is "Did you
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 CFSILEN
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
I've had success when outputting CSV data w/ using , and then 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, October 24, 200
If you are using CF 4.5 or above you can use the tag to not
output anything.
Clint
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=l
try using - I have found with both 4.5 and 5 that it sometimes
will allow you to suppress whitespace that you cant with
-Original Message-
From: Gaulin, Mark [mailto:mgaulin@;globalspec.com]
Sent: Thursday, October 24, 2002 2:09 PM
To: CF-Talk
Subject: RE: whitespace woes
Did you
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 line
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 fi
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
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
-- and make sure there's no extra carriage returns at
the top or bottom.
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
> I'm having
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
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 don
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: http://www.houseoffusion.com/
Try this:
http://www.foo.com/bar.dtd";>
clears the output buffer (including whitespace) prior to
resetting the content-type header. At least, that's how it works in CF 4.x
and CF 5. I had this problem as well delivering a web service to a platform
using a w
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 outpu
Try wrapping the entire thing in a cfsavecontent tag and then trim the output:
http://www.foo.com/bar.dtd";>
#TRIM(XMLOUTPUT#
At 02:13 PM 24/10/02 -0500, you wrote:
>I'm having with trouble with ColdFusion and extraneous whitespace. And
>yes, I've done my Google searching.
>
>Th
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 e
Try this:
1
http://www.foo.com/bar.dtd";>
2
3
4
5
It's ugly, but it seems to work pretty well - it's the carriage returns that
end up generating the whitespace.
Ian
>
> So this page shows an HTML page with a form on it by default, and if the
> form is submitted, it spits out XML.
>
> As
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:
Instead of :
Let me know if that works (or at least cuts down on your whitespace).
Remember, the ENABLECFOUTPUTONLY is doing
33 matches
Mail list logo