have you tried setting
<cfsetting enablecfoutputonly="Yes">
in the application.cfm at the top?
-----Original Message-----
From: Barry Beattie [mailto:[EMAIL PROTECTED]
Sent: Thursday, 1 July 2004 9:32 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: GRRR! whitespace!

it’s getting worse. I’ve tried every trick I know to reduce (just reduce, not get rid of it all) the whitespace and I’m still getting 60%+ of the rendered page as whitespace. I know it’s because I’m using taglibs and custom tags for everything but it defiantly objectionable.

 

consider this quick example. it has 9 lines of content but renders 57 lines total. Then when you’ve got a page full of custom tags it goes out of control.

 

is there anything else I can do?
thanx
barry.b

 

 

simple example: the page:

 

<cfprocessingdirective suppresswhitespace="Yes">

<cfsilent>

<cfimport prefix="content" taglib="contents">

</cfsilent>

<content:_test>

boo

</content:_test>

</cfprocessingdirective>

 

and the custom tag:

 

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "start">

<cfoutput>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

            <title>Untitled</title>

</head>

<body>

</cfoutput>

</cfif>

<cfsetting enablecfoutputonly="no">

 

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "end">

<cfoutput>

</body>

</html>

</cfoutput>

</cfif>

<cfsetting enablecfoutputonly="no">

 


From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Monday, 28 June 2004 3:57 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: GRRR! whitespace!

 

calling objects?

 

every file you include in there will produce whitespace

 

every line that has a cf tag on it will create white space

 

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Barry Beattie
Sent: Monday, June 28, 2004 3:41 PM
To: CFAussie Mailing List
Subject: [cfaussie] GRRR! whitespace!

Hi All

 

I’ve got pages that are (totally) made up of CFIMPORT’ed custom tags. trouble is, it’s full of whitespace

 

<cfprocessingdirective suppresswhitespace = "yes"> at the top of the main page doesn’t seem to work on imported custom tags.

 

and then within the custom tags:

 

<cfif thisTag.executionMode is "start">

<cfsetting enablecfoutputonly="Yes">

<cfoutput>

…HTML and JS only

</cfoutput>

</cfsetting>

</cfif>

 

this actually does not produce ANY output!

 

I’m also using <CFSILENT> where I can but it’s still not enough.

 

any ideas? the problem is being caused by the custom tags. the amount of whitespace is defiantly objectionable in this particular case

 

thanx

barry.b

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
Register now for the 3rd National Conference on Tourism Futures, being held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf

Reply via email to