Application.cfc adding whitespace
I have a cfm page which must at all costs return a simple pipe delimited list with no whitespace before or after it. Application.cfc is adding some and messing everything up. For now I have fixed the problem by moving the relevant cfm page into its own folder with its own [blank] application.cfc but the has got to be a better long term solution. Anyone any ideas? -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 16:32 ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287654 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application.cfc adding whitespace
Use output="false" on the component and all of the methods On 9/3/07, James Smith <[EMAIL PROTECTED]> wrote: > I have a cfm page which must at all costs return a simple pipe delimited > list with no whitespace before or after it. Application.cfc is adding some > and messing everything up. For now I have fixed the problem by moving the > relevant cfm page into its own folder with its own [blank] application.cfc > but the has got to be a better long term solution. > > Anyone any ideas? > > -- > Jay > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 > 16:32 > > > > ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287655 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Application.cfc adding whitespace
Is output set to false? You can also use just before any output in the calling page to reset any white space. That is, of course, if you don't want ANYTHING displayed before this point Example: 1 2 3 4 5 6 Would result in the source of just... 6 ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: James Smith [mailto:[EMAIL PROTECTED] Sent: Monday, September 03, 2007 8:47 AM To: CF-Talk Subject: Application.cfc adding whitespace I have a cfm page which must at all costs return a simple pipe delimited list with no whitespace before or after it. Application.cfc is adding some and messing everything up. For now I have fixed the problem by moving the relevant cfm page into its own folder with its own [blank] application.cfc but the has got to be a better long term solution. Anyone any ideas? -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 16:32 ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287657 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Application.cfc adding whitespace
Output="no" doesn't quite work (almost but not quite) since setting it on the onRequest() function results in no output being sent to the browser at all! However, adding directly before in the onRequest() function seems to have solved that. Cheers all. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 16:32 ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287660 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application.cfc adding whitespace
>Is output set to false? You can also use > just before any output in the calling page to >reset any white space. That is, of course, if you don't want ANYTHING >displayed before this point I always like usin that one for the doctype in a header. :) me ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287664 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Application.cfc adding whitespace
Yep ;-) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Monday, September 03, 2007 3:58 PM To: CF-Talk Subject: Re: Application.cfc adding whitespace >Is output set to false? You can also use just >before any output in the calling page to reset any white space. That >is, of course, if you don't want ANYTHING displayed before this point I always like usin that one for the doctype in a header. :) me ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287667 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4