> I have not managed to do away with the cfoutput tags however since
> often my XML return contains dynamically generated values, I think I
> therefore need the cfoutput.

That makes sense.

> But I discovered something else - and this is almost too stupid to
> comprehend and should be written on a warning sign when you install
> CF: in the CF admin under settings there is an option ‘Enable
> Whitespace Management’.  Guess what - it wasn't checked. Seems
> unchecked by default.

Right, this is disabled by default. For most uses - HTML generation,
for example - this simply isn't that important. And it does add some
overhead.

> Checking it seems to eliminate *a lot* of leading whitespace issues I
> had. Could it be that without this checked the suppressWhiteSpace
> option of cfprocessingdirective does nothing at all?

No, the two are separate. However, if I recall correctly,
CFPROCESSINGDIRECTIVE only gets rid of white space generated by CF
tags. It doesn't get rid of the line where the CF tag was, so you end
up with blank lines. Also, and I hadn't noticed this in your original
email, you're not supposed to use both PAGEENCODING and
SUPPRESSWHITESPACE attributes in the same CFPROCESSINGDIRECTIVE tag.

Again, though, my preference is to use CFCONTENT TYPE="RESET" to avoid
leading whitespace before my output, when generating non-HTML output.

Finally, all this is easily avoided if you can use either web services
or Flash Remoting with CF. CF supports both. But you did mention that
you're using FMS, and I don't know enough about that to comment.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more informati

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5836
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to