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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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

Reply via email to