Hi Mike

I have surrounded it with a cfsilent tag to remove the white space, and
its still the same, no errors but no results appear? And I'm using
cfcontent as below.


<cfsilent>
</cfsilent>cfsetting enablecfoutputonly="yes">
<cfquery name="getNames" datasource="dsn">
  SELECT surname
  FROM tablename
  WHERE surname LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.surname#">
  ORDER by surname ASC
</cfquery>

<cfcontent type="text/xml; charset=UTF-8"
reset="yes"/><cfoutput>#theXML#</cfoutput>
<cfloop from="1" to="#getNames.recordcount#" index="ctr">
      <cfoutput>
      <!--- add the XML config entry --->
      <rs id=""
info="#getNames.surname[ctr]#">#getNames.surname[ctr]#</rs>
    </cfoutput>
</cfloop>
<cfoutput>
</results>
</cfoutput>   
</cfsavecontent>
<cfoutput>#theXML#</cfoutput>
</cfsilent>

-----Original Message-----
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2008 15:00
To: CF-Talk
Subject: RE: CF, Ajax and Autocomplete Problems

My suggestion would be to create a .cfm page with no dynamic code.  Have
it ONLY output pure XML.  Heck, even take the XML generated by the PHP
page and paste it into the .cfm page.

As with the original poster, however, make sure there is no white space
above the first XML tag.

Also, us the CFCONTENT tag to ensure that you are sending it as an XML
MIME type.

AJAX does not care what application server sends the XML.  It only cares
that it is valid XML.

Mike 

-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 8:53 AM
To: CF-Talk
Subject: RE: CF, Ajax and Autocomplete Problems

Hi Dominic

Just tried what you suggested, but its still the same?


This is the original php script, perhaps Coldfusion can't offer the same
functionality as PHP, that's why there are problems implementing it in
CF?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312586
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to