Great suggestions, guys.
Thanks!
Jochem van Dieten wrote:
> Brian Kotek wrote:
>
>>Just a note that you can also always put just
>>before you output your HTML content, and that will discard everything
>>in the output buffer and start from scratch. This is an easy way to
>>eliminate any whitespa
Brian Kotek wrote:
> Just a note that you can also always put just
> before you output your HTML content, and that will discard everything
> in the output buffer and start from scratch. This is an easy way to
> eliminate any whitespace that was generated before your content.
Second that. And usin
Just a note that you can also always put just
before you output your HTML content, and that will discard everything
in the output buffer and start from scratch. This is an easy way to
eliminate any whitespace that was generated before your content.
On Thu, 17 Mar 2005 11:04:16 -0500, Robyn <[EMA
Ah, I see what you're saying... So, if you needed the doctype to be the
first line in the file, for instance, then it would make sense to
suppress any whitespace beforehand. I also didn't know that the cfapp
tag would output a line of whitespace. BTW, I'm looking at the fusebox
index.cfm file
0
To: CF-Talk
Subject: Re: CFSILENT with CFAPPLICATION
So, even in application.cfm, why would you wrap all of the code in cfsilent?
Are you actually outputting stuff in your application.cfm, or is it to
suppress whitespace?
~|
Lo
well cfapplication name="something" does output a blank line
probably...whats directly under the tag? is it a doctype?
Adam H
On Thu, 17 Mar 2005 10:09:03 -0500, Robyn <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> My apologies if this has already been discussed. I tried searching in
> the archives
So, even in application.cfm, why would you wrap all of the code in
cfsilent? Are you actually outputting stuff in your application.cfm, or
is it to suppress whitespace?
-R
Ian Skinner wrote:
> That does seem a bit weird to me as well. Now I often place a pair of
> tags bracketing my entire
That does seem a bit weird to me as well. Now I often place a pair of
tags bracketing my entire application.cfm file, but not just around
the cfapplication tag.
Application.cfm
---
A bunch more code.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSou
eErrorCode#type:
>#cfcatch.Type#message:
>#cfcatch.Message#TAG CONTENT:
>
>
>
>
> #CURRENT_TAG_STACK["ID"]#
>(#CURRENT_TAG_STACK["LINE"]#, #CURRENT_TAG_STACK["COLUMN"]#)
>#CURRENT_TAG_STACK["template&qu
name="detail">#HTMLeditFormat(cfcatch.Detail)#
Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year
- Original Message -
From: dave <[EMAIL PROTECTED]>
Date: Wed, 29 Sep
ok, say i have this page (see code below)
what would be all the ways to optimize it?
sorry the formatting got jacked when i pasted
Sorry there has been an error, please try again
SELECT agent_username
FROM users
WHERE agent_username =
INS
right but the whole body section is not within a cfoutput tag, wouldnt it have 2 be?
-- Original Message --
From: Barney Boisvert <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 29 Sep 2004 00:12:31 -0700
>No, because the HTML tag is enclosed wi
No, because the HTML tag is enclosed within a CFOUTPUT tag, so it will
be displayed. The ENABLECFOUTPUTONLY attribute of the CFSETTING tag
makes it so that content contained within CFOUTPUT tags is rendered as
normal.
cheers,
barneyb
On Wed, 29 Sep 2004 02:12:07 -0400, dave <[EMAIL PROTECTED]>
logic that way too.
>
>Cheers
>Mike Kear
>Windsor, NSW, Australia
>AFP Webworks
>http://afpwebworks.com
>.com,.net,.org domains from AUD$20/Year
>
>
>- Original Message -
>From: dave <[EMAIL PROTECTED]>
>Date: Wed, 29 Sep 2004 01:29:55 -0400
>
You have to use it with proper nesting in relation to other CF tags.
It operates like any other tag with a body; if you open a tag within
the body, you have to close it within the body, and if you open a tag
outside the body, you have to close it outside the body.
cheers,
barneyb
On Wed, 29 Sep
do u need to do it around each indiv cf tags?
i just tried it on a processing page and it took a big stinky dookie
-- Original Message --
From: Barney Boisvert <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Tue, 28 Sep 2004 22:42:35 -0700
>I usually
m
.com,.net,.org domains from AUD$20/Year
- Original Message -
From: dave <[EMAIL PROTECTED]>
Date: Wed, 29 Sep 2004 01:29:55 -0400
Subject: Re: cfsilent tag
To: CF-Talk <[EMAIL PROTECTED]>
so actually we should be putting it between most or all of out cfm
code, especially i
I usually set up my files like this:
processing stuff .
display stuff .
Of course, I'm a Fuseboxer, so in general, I usually only have
processing or display code in any given file, but there are situations
where you have both.
Unlike using CFSETTING CFOUTPUTONLY="true", y
so actually we should be putting it between most or all of out cfm code, especially if it is at the top of the page?
-- Original Message --
From: Mike Kear <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 29 Sep 2004 15:20:27 +1000
>If you do a d
just to chime in...it also reduces bandwidth usage since the file
sizes are smaller. on a busy site that does add up to a few bucks
saved in bandwidth costs.
On Wed, 29 Sep 2004 15:20:27 +1000, Mike Kear <[EMAIL PROTECTED]> wrote:
> If you do a decent job of using and
> enablecfoutputonly="yes"
If you do a decent job of using and
enablecfoutputonly="yes"> tags, you can get quite a large CFM template
containing lots of processing, and have only the lines of HTML left in
the finished output page.
Why care about white space?
I dont suppose it's the most important part of anyone's develop
Anything in the body of the tag will be removed from the generated
content of the page. My most common use is to surround blocks of
processing so that they don't generate any content. if you want a
good example of NOT doing that, hit view source on the CF admin pages.
Hundreds of lines of whites
CFSILENT works like CFSAVECONTENT except the generated content is
thrown away, i believe. So it operates at the HTML buffer level,
unlike CFSETTING. Not sure about CFPROCESSINGDIRECTIVE
cheers,
barneyb
On Wed, 28 Jul 2004 14:10:55 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> that's never
> that's never worked for me... the cfsavecontent tag shouldn't generate
> any content because it's just looking at the output buffer... which
> doesn't receive any content while it's inside the cfsilent tags...
Works great for me but then I guess I am testing in CFMX 6.1 .
Paul
[Todays
that's never worked for me... the cfsavecontent tag shouldn't generate
any content because it's just looking at the output buffer... which
doesn't receive any content while it's inside the cfsilent tags...
afaik there's not any way to output anything inside cfsilent tags...
you can still use to g
Not that I'm aware of... Your only option is to close off your cfsilent tags.
[do stuff]
[do more stuff]
--
Jeff
- Original Message -
From: Jim McAtee
To: CF-Talk
Sent: Wednesday, July 28, 2004 10:36 AM
Subject: cfsilent how to...
ColdFusion 5.0. If I'v
If i'm doing something like that then this is how I do it...
[do stuff]
[do more stuff]
#errormessage#
[rest of code not needing to be in CFSILENT]
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[
The content of the included file is indeed suppressed.
Cantrell
S. Isaac Dealey wrote:
> iirc this was my experience with it...
>
> Isaac
> Certified Advanced ColdFusion 5 Developer
>
> www.turnkey.to
> 954-776-0046
>
>
>>What happens if you use CFINCLUDE between CFSILENT tags?
>>Is the outp
iirc this was my experience with it...
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
> What happens if you use CFINCLUDE between CFSILENT tags?
> Is the output
> normally generated by the CFINCLUDE also suppressed?
>
> (Some CF code)
>
> (Some more CF code)
>
The only thing that I recall using it for is around to keep the
message formatted right
- Original Message -
From: "MW" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2002 8:50 PM
Subject: RE: CFSILENT why would it be us
. These are the
solutions offered from Allaire.
Matt
--
Matt Wisdom
cto
Turbo Squid
> -Original Message-
> From: Matt Robertson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 7:20 PM
> To: CF-Talk
> Subject: Re: CFSILENT why would it be used?
>
> It just kill
It just kills whitespace.
It doesn't suppress the default CF debugging messages, but anything you put in
yourself, like variable dumps, will be suppressed.
---
Matt Robertson[EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---
Thank you.
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:09 PM
To: CF-Talk
Subject: Re: cfsilent
David Schmidt wrote:
> Has anyone noticed any ill effects from using cfsilent? speed reduction
?
No. No.
Joc
David Schmidt wrote:
> Has anyone noticed any ill effects from using cfsilent? speed reduction?
No. No.
Jochem
__
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activati
I use CFSILENT all the time since it seriously suppresses whitespace.
I personally have not seen any noticeable time difference, just cleaner
code.
If you hear otherwise please forward me the message - I'm interested in
knowing.
Thank you,
Joseph DeVore
VeloxWeb Technologies
-Original Me
According to common knowledge, It is believed to be a fairly inefficient
tag.
However, common knowledge is not always correct and I cannot speak from
experience.
As a point of reference, it is also 'common knowledge' that using
cfsetting (with enableCfOutputOnly = "yes") to suppress whit
Hi Bruce - no problem for the mail, I'm just glad it helped clear a few
things up. The general rule I use to decide whether or not to build the
content as a big string and then dump it either incrementally or at the
end is a bit rough but basically:
If the template/custom tag is primarily a data
Wow, I could
have figured that out from the title of the function. But what is ODBC
timestamp format? When should I use it?
- Original Message -
From: "Colin Fyfe" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 3:
Hi Bruce,
CFSILENT is a great tag IMO. It allows us to suppress all whitespace
generated within our custom tags, even when a custom tag is called from
within a CFOUTPUT block - if only Spectra (1.0) custom tags used CFSILENT...
Anyway, CFSILENT is like any other CF tag which has an opening and c
What do you mean that the server yelled at you? Do you mean an error
message was displayed? If so can we see it?
--K
Katrina Chapman
Consultant
Ameriquest Mortgage
> I tried using to suppress the output of an ArrayAppend()
> function, and CF server yelled at me. =) Apparently it doesn't
> recognize the
> tag, which sort of goes along with the fact that CF Studio doesn't try to
> autocomplete when I type
> Anyone else have this problem? Both apps are v4.5
41 matches
Mail list logo