d get rid it.
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 11:33 AM
To: CF-Talk
Subject: RE: removing whitespace from within CFC output
Tags around any lines of logic that do not need to be
output.
Just be warned that is very efficient
That is using CFIMPORT to import my custom tags.
So I am doing something like this on the current pages:
function Init() {
// Do something
}
Orginally I wanted to just do a cfimport in the onrequeststart and then
reference any of those tags from where ever, but found that not to work.
Andy Matthews wrote:
> I was actually thinking that very same thing right after I posted. In some
> instances, I have different headers and I wasn't sure how you might go about
> managing that.
I'm using cfswitch to set META tags for individual sections of the site,
and to exclude the headers fro
So to double check Dave, that code you posted goes in a CFC or just at the
top of any CFM page?
-Original Message-
From: John C. Bland II [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 5:05 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
That'
Aaron...
?
Is this some sort of propietary code? Looping over the whole thing with CF
and replacing stuff dynamically I guess?
-Original Message-
From: Aaron Rouse [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 4:34 PM
To: CF-Talk
Subject: Re: removing whitespace from
-Talk
Subject: Re: removing whitespace from within CFC output
Andy Matthews wrote:
> That's a GREAT idea Les! Always wondered how to avoid having to manually
> enter the header and footer calls on a per page basis.
>
> Only problem is that it's CF7 only. Soon...
Certainly helps
>actually, i was really glad on that project that I did start over :)
>
I think you need a new name... dave "the machine gun poster" sounds good to me.
You post messages faster than you get your cf error messages - that's fast!
There'll be posts from you at 5:41AM,5:42AM,5:43AM,5:44AM,5:45AM
actually, i was really glad on that project that I did start over :)
~Dave the disruptor~
From: Les Mizzell <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2006 9:06 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
dave
L PROTECTED]>
Sent: Thursday, March 09, 2006 5:26 AM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
> and 10 months later, we haven't yet scene any of these "bigger &
> better" things..
>
> ~Dave the disruptor~
.. and 1
> and 10 months later, we haven't yet scene any of these "bigger &
> better" things..
>
> ~Dave the disruptor~
. and 10 months later, your spelling hasn't improved at all. :)
The bigger and better things just keep getting bigger and better.
Will
~~
dave wrote:
> just wasnt worth the trouble for me.
Better than starting over!!
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234776
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http:/
and 10 months later, we haven't yet scene any of these "bigger & better"
things..
~Dave the disruptor~
From: Will Tomlinson <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2006 7:35 PM
To: CF-Talk
Subject: Re: removi
just wasnt worth the trouble for me.
~Dave the disruptor~
From: Les Mizzell <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2006 7:50 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
dave wrote:
> On one of my last site
dave wrote:
> On one of my last sites I tried adding the headers and footers via
> Application.cfc (just including them) which would seem better than cfc
> outputs and i got quite a bit through the site and started in on the
> forms.
Took me a minute to figure what you're talking about - I
>If it indeed does have that app, then I shall be picking it up tomorrow.
> I've been toying with the idea of making one just for the experience,
>and wouldn't mind the pointers if Ben's handing 'em out!
>
It's meant to be a basic example - a good place to get started. I was able to
use it as
Les,
I have held up on getting the WACK7 book (I already own 4,5,6) and your
statement caught my attention. Does Ben really build an entire CF
ecommerce app in there? It doesn't seem so in reading the reviews on
Amazon or on Ben's site. Seems like the only reference was for the OWS
app use
> Lets just say, I had to start over.
Well, I got it from Ben Forta's "Coldfusion MX7 Web Application
Construction Kit" - and there's an entire ecommerce application in there
built that way.
Hm
I haven't run into any problems yet. Works great on teh one site I've
got going, but haven'
while back.
>
> ~Dave the disruptor~
>
>
> From: "John C. Bland II"
> Sent: Wednesday, March 08, 2006 5:56 PM
> To: CF-Talk
> Subject: Re: removing whitespace from within CFC output
>
> Dave, Genius! That white sp
;
> ~Dave the disruptor~
>
>
> From: "John C. Bland II" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 08, 2006 5:56 PM
> To: CF-Talk
> Subject: Re: removing whitespace from within CFC output
>
> Dave, Genius! That white space at th
e it
>
> ~Dave the disruptor~
>
>
> From: Les Mizzell
> Sent: Wednesday, March 08, 2006 2:41 PM
> To: CF-Talk
> Subject: Re: removing whitespace from within CFC output
>
> I've got the same sort of problem going on here:
>
> http://www.columbiacityjazz.com
; ~Dave the disruptor~
>
>
> From: Les Mizzell <[EMAIL PROTECTED]>
> Sent: Wednesday, March 08, 2006 2:41 PM
> To: CF-Talk
> Subject: Re: removing whitespace from within CFC output
>
> I've got the same sort of problem going on here:
>
> http://www.co
here
hey there mr disruptor
contents go here
~Dave the disruptor~
From: Les Mizzell <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2006 5:30 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
Andy Matthews
right
-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 3:07 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
Andy Matthews wrote:
> I supposed I could do that, it just seems cleaner to output it from within
&g
Yeah, that is why I opted on a recent project to just include my
header/footers on each page instead of through the application.cfc So I end
up with something like:
stuff here
more stuff here
yet more stuff here
Actually no need for me really to be using cfimport for my custom tags on
th
Andy Matthews wrote:
> That's a GREAT idea Les! Always wondered how to avoid having to manually
> enter the header and footer calls on a per page basis.
>
> Only problem is that it's CF7 only. Soon...
Certainly helps with laying out files. Plus, with the correct CSS
layout, all my "content" fil
Not that I have ever done it before but you could just include the header in
the application.cfm and the footer in the onrequestend.cfm files, in pre CF7
versions to have the same visual effect.
On 3/8/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> That's a GREAT idea Les! Always wondered how t
o: CF-Talk
Subject: Re: removing whitespace from within CFC output
I've got the same sort of problem going on here:
http://www.columbiacityjazz.com
Do a view source.
Basically, it's a CSS source ordered layout (content first), using an
Application.cfc file to call headers a
dave wrote:
> add this must be on the same line, that will clear all the cfm code above it
That did it
Thanks!
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234738
Archives: http://www.houseoffusion.com/cf_li
add this
Sent: Wednesday, March 08, 2006 2:41 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
I've got the same sort of problem going on here:
http://www.columbiacityjazz.com
Do a view source.
Basically, it's a CSS source ordered layout (content first)
or
#myCFC()#
> Andy Matthews wrote:
>> I supposed I could do that, it just seems cleaner to output it from
>> within
>> the CFC. That way all I have in my main template is a line of code found
>> within a cfscript tag.
>
> how 'bout this? :)
>
>
> writeOutput(myCfc());
>
>
>
~~~
Andy Matthews wrote:
> I supposed I could do that, it just seems cleaner to output it from within
> the CFC. That way all I have in my main template is a line of code found
> within a cfscript tag.
how 'bout this? :)
writeOutput(myCfc());
~~~
Subject: Re: removing whitespace from within CFC output
Michael Dinowitz wrote:
> I use cached CFCs to output 'pods' in my replacement code for blogCFC.
Works
> great.
why wouldn't you just have the CFC return the content as a string and do
this?
#sessuib,myCachedCFC(&quo
This is how I do it and I usually refer to it as my CFC outputing code even
though really it is outputing a string.
On 3/8/06, Rick Root <[EMAIL PROTECTED]> wrote:
>
> why wouldn't you just have the CFC return the content as a string and do
> this?
>
> #sessuib,myCachedCFC("podName")#
>
>
~~
Michael Dinowitz wrote:
> I use cached CFCs to output 'pods' in my replacement code for blogCFC. Works
> great.
why wouldn't you just have the CFC return the content as a string and do
this?
#sessuib,myCachedCFC("podName")#
I understand it's a matter of preference, and of course it's a rule of
I've got the same sort of problem going on here:
http://www.columbiacityjazz.com
Do a view source.
Basically, it's a CSS source ordered layout (content first), using an
Application.cfc file to call headers and footers set up as:
header.cfm (includes the left nav too)
body.cfm (stuff in middle)
That's sort of what I'm doing Michael.
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:51 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
I use cached CFCs to output 'pods' in my replacem
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:25 PM
To: CF-Talk
Subject: Re: removing whitespace from within CFC output
Andy Matthews wrote:
> GASP!?!?
>
> He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
> CFCs and have decided that this
I use cached CFCs to output 'pods' in my replacement code for blogCFC. Works
great.
> I'd love to know why you think you have to do the output within the CFC =)
>
> won't you share?
>
> Rick
>
>
~|
Message: http://www.houseoffu
Andy Matthews wrote:
> GASP!?!?
>
> He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
> CFCs and have decided that this an efficient way to solve a specific problem
> I have.
I'd love to know why you think you have to do the output within the CFC =)
won't you share?
Ric
CFSILENT - Suppresses output produced by CFML within a tag's scope.
> GASP!?!?
>
> He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
> CFCs and have decided that this an efficient way to solve a specific
> problem
> I have.
>
> So my question is that when I'm outputting t
Tags around any lines of logic that do not need to be
output.
Just be warned that is very efficient. It will also silence any
errors that might be thrown by any line inside them. So make sure you code is
rock solid, or provide other means of capturing and reporting errors.
--
GASP!?!?
He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
CFCs and have decided that this an efficient way to solve a specific problem
I have.
So my question is that when I'm outputting this information, there's a lot
of whitespace (up to 10 or 15 lines in some cases) du
42 matches
Mail list logo