RE: removing whitespace from within CFC output

2006-03-09 Thread Andy Matthews
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

Re: removing whitespace from within CFC output

2006-03-09 Thread Aaron Rouse
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.

Re: removing whitespace from within CFC output

2006-03-09 Thread Les Mizzell
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

RE: removing whitespace from within CFC output

2006-03-09 Thread Andy Matthews
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'

RE: removing whitespace from within CFC output

2006-03-09 Thread Andy Matthews
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

RE: removing whitespace from within CFC output

2006-03-09 Thread Andy Matthews
-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

Re: removing whitespace from within CFC output

2006-03-09 Thread Will Tomlinson
>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

Re: removing whitespace from within CFC output

2006-03-09 Thread dave
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

Re: removing whitespace from within CFC output

2006-03-09 Thread 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

Re: removing whitespace from within CFC output

2006-03-09 Thread Will Tomlinson
> 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 ~~

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
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:/

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Will Tomlinson
>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

Re: removing whitespace from within CFC output

2006-03-08 Thread Ray Champagne
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
> 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'

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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

Re: removing whitespace from within CFC output

2006-03-08 Thread John C. Bland II
; > ~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

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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

Re: removing whitespace from within CFC output

2006-03-08 Thread John C. Bland II
; ~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

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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

RE: removing whitespace from within CFC output

2006-03-08 Thread 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

Re: removing whitespace from within CFC output

2006-03-08 Thread Aaron Rouse
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Aaron Rouse
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

RE: removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
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

Re: removing whitespace from within CFC output

2006-03-08 Thread dave
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)

Re: removing whitespace from within CFC output

2006-03-08 Thread Michael Dinowitz
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()); > > > ~~~

Re: removing whitespace from within CFC output

2006-03-08 Thread Rick Root
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()); ~~~

RE: removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Aaron Rouse
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")# > > ~~

Re: removing whitespace from within CFC output

2006-03-08 Thread Rick Root
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Les Mizzell
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)

RE: removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
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

RE: removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
[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

Re: removing whitespace from within CFC output

2006-03-08 Thread Michael Dinowitz
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Rick Root
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

Re: removing whitespace from within CFC output

2006-03-08 Thread Michael Dinowitz
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

RE: removing whitespace from within CFC output

2006-03-08 Thread Ian Skinner
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. --

removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
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