> I have a ColdFusion Template, call "getInfo.cfm", that will query a
> database and return a comma delimited list of records. For example:
> 
> 1,Abby
> 2,Jack
> 3,Suzie
> 
> I have another ColdFusion Template, called index.cfm, that 
> makes a call to the "getInfo.cfm" template with cfhttp to this 
> list.
> 
> <cfhttp method="GET" url="http://www.server.edu/getInfo.txt" 
> name="XX" columns="id,name">
>   <cfoutput query="XX">
>     (#id# - #name#)
>   </cfoutput>
> </cfif>
> 
> This works fine with getInfo.txt which is a static text file, but 
> not with getInfo.cfm which is a ColdFusion Template. I can't figure 
> out what to do next or what other approach to take.

If you're going to use CF to generate data in a valid CSV data format, you
need to make sure that your CF template doesn't output anything else - any
HTML, for example, or debugging info. You'll want to make sure that you're
not generating any output in an application.cfm as well.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to