This content has been marked as final. Show 6 replies
Use: <cfoutput>#Trim (ajaxXML)#</cfoutput>
You can additionally use CFContent to wipe previous output but it is better not to output anything extra in the first place.
Ive tried that, I am trying everything I can think of, but still did not get the result I am aiming for.
I'm sure there is something I am missing here.
Any idea would be greatly appreciated.
You are going to have to supply more details.
For starters, post the xml exactly as the stored procedure returns it.
The XML that the DB returns, looks like this:
After playing with code for a while now, I believe that the problem is not with the returned XML.
The page that runs the SP is the page that call the SP. What means that the white-spaces are the code that the Coldfusion engine has already processed (although, the condition that checks whether the form variable that Ajax request, exist. Is the first thing on the page). to my understanding, the returned XML should be at the top of the page.
I hope that I was clear enough.
If that really is the content of ajaxXML, then the code above and cfcontent should fix the problem.
<CFABORT> <!--- Display nothing else. --->
Thank you very much :)