Copy link to clipboard
Copied
It looks like cfajaximport does not honour the cfcontetn reset = 'yes' attribute. Try the following code...
<html>
<head>
<title></title>
</head>
<body>
<cfajaximport scriptsrc="/CFIDE/scripts/">
<cfsetting showdebugoutput="no">
<cfcontent reset="yes" type="text/plain">
<cfoutput>#Now()# is the time</cfoutput><cfabort>
</body>
</html>
Even though we've reset the html stream with cfcontent reset, the cfajaximport headers are still shown in the output, I'm guessing that it is applied after the fact by coldfusion, but this is now CORRUPTING any output that is not CF output (CSVs, PDFs, anything not html).
Bug or feature? I need a workaround (putting it at the bottom of page doesn't help as it needs to be before any calls to ajax functionality).
Copy link to clipboard
Copied
At the bottom of the page is a function made by Elliott Sprehn to
clear the that output :
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000271.htm
I learned something new today from this post
http://www.bennadel.com/blog/758-ColdFusion-GetPageContext-Massive-Exploration.htm
(especially from the comments).
Mack