Alternatively, it could be a result of the CFC itself.

Any CFC that uses output="true" to send data back to the screen will
insert whitespace for any code it executes.

Adding CFSILENT inside the cfcomponent tag and outside the cffunction
blocks will help, as will putting cfsilent inside the cffunction and
returning data instead of sending it back to the content stream.

J


On Sun, 27 Feb 2005 23:21:03 -0000, Adrian Lynch
<[EMAIL PROTECTED]> wrote:
> Did you get this fixed?
> 
> You might find the white space is coming from the Application.cfm file. To
> test it without making many changes first, create a secon App.cfm file that
> will get included instead of the current one. Put nothing in it and see if
> the white space is reduced. If that's the problem, look at some or all of
> the following...
> 
> <cfsilent>
> <cfsetting enablecfoutputonly="yes">
> <cfcontent reset="yes">
> 
> Between them I'm sure you can kill off that white space. My money would be
> on <cfcontent reset="yes">. Put it at the bottom of your app.cfm file and
> see if it makes a difference.
> 
> Ade
> 
> -----Original Message-----
> From: Dan Plesse [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2005 20:06
> To: CF-Talk
> Subject: XMLhttpRequest returns with a wddxpacket and white spaces
> 
> My XMLhttpRequest object is returning with a wddxpacket and two whole lines
> of white spaces which I like to remove. I didn't know cfc's returned with
> white spaces.
> 
> Ex. In the browser source window
> //white space or /n
> //white space or /n
> <wddxPacket
> version='1.0'><header/><data><string>0</string></data></wddxPacket>
> 
> I think the white spaces are causing wddxDes errors too.
> 
> Error from wddxDes.js
> Error: str.split is not a function
> Source File: http://dan:8500/wddxDes.js
> Line: 758
> 
> alert("response was"+req.responseText+":");
> 
> between the "was" and "<wddx" is a large space.
> 
> I was wondering if anyone has deserialized WDDX packets from CF and removed
> the white space returned by a CFC?
> 
> My Code:
> MyDeser = new WddxDeserializer;
> Books = MyDeser.deserialize(req);
> 
> When I view the cfc from the browser it returns with at least two lines of
> white space which can't be good.
> 
> I have tried <cfreturn trim(helloworld)> but I think the white spaces are
> server side. Anyone
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196744
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