1 Reply Latest reply on Jul 9, 2009 9:41 AM by mack_

    cfajaximport headers in plain text content

    GrumpyJoe Level 1

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