Re: No white space in source code?

2005-02-06 Thread Jehiah Czebotar
 
 Also make sure whitespace amangement is checked in the Administrator.
 And use CFCs and and set output = false.
 

I believe that setting is only available when running in the
standalone mode. i.e. it is not there when using the J2EE install.

--
[EMAIL PROTECTED]
http://www.jehiah.com/

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193236
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: No white space in source code?

2005-02-05 Thread Larry Lyons
What's the trick so there is no blank space where the coldfusion code is
when we look at the source code in the browser?
 
Thanks
 
Pat

Pat,

Aside from cfsilent/cfsilent, there's also cfprocessingDirective, as in 
cfprocessingdirective suppresswhitespaceyes
code to whose output the setting is applied
/cfprocessingdirective

Another technique I use is a URF from cflib called HtmlCompressFormat. You can 
get it at http://www.cflib.org/udf.cfm?ID=812. From the website:

--
This function is useful to reduce download time of your entire webpage. 
Client's will load pages noticably faster. Also very useful to compress a page 
before caching it for storage.

Code is very useful in the fusebox 3 methodology, wrap this around your 
#fusebox.layout# variable to compress the html output.

Code works on 3 levels of compression, and can easily be customized for more or 
different ways.

Level 1: Replaces excessive spaces with no side effects.

Level 2: (default) Removes more blank space but keeps html tags from wrapping 
into each other, so the code is still readable (maybe even more so)

Level 3: Replaces all comments and any spaces possible, the side effect is 
space between html tags is removed, so alignment changes are possible.
--

Here's how I use it

cfinclude template=/includes/htmlCompressFormat.cfm /
cfsavecontent variable = html
 insert CF and HTML code here
/cfsavecontent
cfoutput #HtmlCodeFormat(htmlCompressFormat(html, 2))#/cfoutput

It does a very good job of eliminating whitespace, especially when used in 
conjunction with cfsilent, and cfprocessingdirective.

hth,

larry

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193197
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


No white space in source code?

2005-02-04 Thread CFDEV
What's the trick so there is no blank space where the coldfusion code is
when we look at the source code in the browser?
 
Thanks
 
Pat


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193156
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: No white space in source code?

2005-02-04 Thread Adam Haskell
cfsilent cfsetting enableCFoutputOnly=true are 2 things you can use.

Also make sure whitespace amangement is checked in the Administrator. 
And use CFCs and and set output = false.

Theres also a custom tag called lesswhitespace...but on large pages it
takes a while to process the page..

Adam H 


On Fri, 4 Feb 2005 18:11:23 -0500, CFDEV [EMAIL PROTECTED] wrote:
 What's the trick so there is no blank space where the coldfusion code is
 when we look at the source code in the browser?
 
 Thanks
 
 Pat
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193157
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: No white space in source code?

2005-02-04 Thread Barney Boisvert
cfprocessingdirective
suppresswhitespace=true/cfprocessingdirective and cfsetting
cfoutputonly=true / will go a long way towards reducing it.  If you
don't want any, however, you'll need to judiciously use CFSILENT or
some kind of post-processing to strip the whitespace out of the
generated content.

cheers,
barneyb

On Fri, 4 Feb 2005 18:11:23 -0500, CFDEV [EMAIL PROTECTED] wrote:
 What's the trick so there is no blank space where the coldfusion code is
 when we look at the source code in the browser?
 
 Thanks
 
 Pat
 
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193158
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54