Jon Alsbury has a post about this:

 The most effective (and easy to implement) technique for reducing
whitespace in CFMX generated pages I have discovered so far is to set up a
simple servlet filter to intercept the response in order to strip out
whitespace before it is returned to the client. The filer I've been using
for this is called Trim Filter and can be downloaded here:

http://www.servletsuite.com/servlets/trimflt.htm

Setup is easy: simply download trimflt.jar from the above URL, drop it into
your 'cfusionmx/lib' directory. Add the following to
'cfusionmx/wwwroot/WEB-INF/web.xml':

<filter>
<filter-name>trimFilter</filter-name>
<filter-class>com.cj.trim.trimFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>trimFilter</filter-name>
<url-pattern>*.cfm</url-pattern>
</filter-mapping>

HTH

On 05/06/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> So Ian...
>
> Right now, the entire HTML portion of the page is wrapped in a single
> cfoutput block. Are you saying that if I break up the cfoutput into multiple
> portions, and wrap the cfsetting around the spots that are creating the
> blank spaces then I might be in good shape?
>
> I'll give it a shot for sure, thanks.
>
> Not quite, you just need one cfsetting around the page, then put the
> cfoutput only around the parts you want sent, leaving the other sections
> unmarked.
>
>
> <cfsetting enableCFOutputOnly="yes">
> I'm
> A
> Bunch
> Of
> Processing
> <cfoutput>I will be sent to the client.</cfoutput>
> More
> Processing
> That
> Does
> Not
> Generate
> Output
> <cfoutput>I will go to the client to.</cfoutput>
>
> </cfsetting>
>
> With strict use of this you can make your entire HTML output exist on one
> line in the client.
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242542
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

Reply via email to