10 Replies Latest reply on Jun 30, 2016 12:23 PM by WolfShade

    CFCHART adding javascript to JSON


      I recently upgraded from CF9 to CF11 (development version) running on localhost and I am having the following issue. I have a CFC that saves some data, creates a few cfcharts and saves them to disk. The following is getting added to the beginning of the JSON object that is returned to the client, causing the ajax call to fail:


      <script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";






      _cf_clientid='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script>

      <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script>

      <script type="text/javascript" src="/CFIDE/scripts/chart/cfchart-server.js"></script>


      This only happens when I execute the code in the CFC that creates the charts. If I comment that out, it works fine.


      Message was edited by: Carl Von Stetten (changed CFGRAPH to CFCHART in title)