RE: Whitespace Woes

2005-03-24 Thread Dave Watts
> 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

Re: Whitespace Woes

2005-03-24 Thread Claude Schneegans
>>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/

Re: Whitespace Woes

2005-03-23 Thread Barney Boisvert
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

Re: Whitespace Woes

2005-03-23 Thread Andrew Grosset
>>>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

Re: Whitespace Woes

2005-03-22 Thread Claude Schneegans
>>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. ~~

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
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

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
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

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
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

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
>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

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
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

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
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

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
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

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
>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

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
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

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
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

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
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

RE: Whitespace Woes

2005-03-22 Thread Gaulin, Mark
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

RE: whitespace woes

2002-10-25 Thread BEN MORRIS
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

RE: whitespace woes

2002-10-24 Thread Clint Tredway
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

RE: whitespace woes

2002-10-24 Thread Shawn Kernes
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

RE: whitespace woes

2002-10-24 Thread Will Stalder
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

Re: whitespace woes

2002-10-24 Thread Sean A Corfield
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

RE: whitespace woes

2002-10-24 Thread Gaulin, Mark
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

Re: whitespace woes

2002-10-24 Thread S . Isaac Dealey
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

RE: whitespace woes

2002-10-24 Thread Mosh Teitelbaum
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

RE: whitespace woes

2002-10-24 Thread Rob Rohan
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

Re: whitespace woes

2002-10-24 Thread Jochem van Dieten
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/

RE: whitespace woes

2002-10-24 Thread Mark A. Kruger - CFG
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

Re: whitespace woes

2002-10-24 Thread Jerry Johnson
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

Re: whitespace woes

2002-10-24 Thread Brook Davies
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

Re: whitespace woes

2002-10-24 Thread Jeffry Houser
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

Re: whitespace woes

2002-10-24 Thread Ian Lurie
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

Re: whitespace woes

2002-10-24 Thread cf-talk
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