From: JFERO on
I am running CFMX 7.0 on W2k server (IIS 5.0) and I am trying to implement some
simple ajax calls with the coldfusion pages that return data to add elements
to a select box. The problem is every time I get the return data the page
includes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> at the
beginning of the page so it returns that along with the query results and it
appears in the select box. It happens on blank documents with an HTML
extension as well. It doesn't happen on an apache server I am running only
the IIS, so I figure there must be a setting in IIS to suppress this "default"
HTML header. hopefully some one here will know.

This does qualify as a stupid question. I have included the code for the page
which returns the pipe delimited response to the ajax request.

TIA,

Eric O.

<cfsilent>
<cfparam name="oulist" default="">
<cfset oulist = ""/>
<cfif isdefined("url.progno")>
<cfquery name="qGetOUs" datasource="#DBName#" >
Select ltrim(rtrim(o.OU)) as OU from derprograms d inner join eropunit o on
d.siteid = o.siteid
where d.progno = '#url.progno#'
</cfquery>
<cfif qGetOUs.recordcount>
<cfset oulist = valuelist(qGetOus.OU,"|")/>
</cfif>

</cfif>
</cfsilent>

<cfoutput>#oulist#</cfoutput>