• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfajaximport headers in plain text content

Guest
Jul 09, 2009 Jul 09, 2009

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).

TOPICS
Advanced techniques

Views

836

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 09, 2009 Jul 09, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation