Set output="false" in both the cfcomponent and cffunction tags. See if that makes a difference.
Adrian > -----Original Message----- > From: John M Bliss [mailto:bliss.j...@gmail.com] > Sent: 19 March 2009 15:22 > To: cf-talk > Subject: Suppress whitespace in CFC > > > I've written a CFC responsible for returning data to cfgrid > format="html" > bind="cfc:MyCFC.getStuff({cfgridpage},{cfgridpagesize},{cfgridsortcolum > n},{cfgridsortdirection})" > > I'm experiencing a strange error and, when I call > http://localhost/.../MyCFC.cfc?method=getStuff&returnFormat=json&... > the > actual JSON starts on line 39,439! The error I'm getting from cfgrid > is a > JS alert-style popup that reads, "The page at http://localhost says: > CFGRID: > Response is empty" > > My theory is that, if I can make the JSON start on line 1, this error > will > go away but I'm not sure how to suppress the whitespace appearing above > the > JSON. (Frankly, I'm not even sure where it's coming from.) I've tried > cfsetting enableCFoutputOnly="yes", cfprocessingdirective > suppressWhiteSpace="yes", and cfsilent and none seems to affect the > amount > of whitespace at all. > > Ideas? > > -- > John Bliss > IT Professional > LinkedIn: http://www.linkedin.com/in/jbliss ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/cf-talk/message.cfm/messageid:320698 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4