title: CF 11. 'ColdFusion is not defined' error using ColdFusion.Ajax.submitForm
body: <p>Just re-installed everything on new laptop after old one crashed. Upgraded from CF9 to CF11 in the process. Running IIS on Windows 10. Local site is working fine, except when it comes to submitting a form with ajax. </p>
  
  <pre><code>ColdFusion.Ajax.submitForm('registerForm', '/register_action.cfm', callback,errorHandler);
  </code></pre>
  
  <ul>
  <li>I have <code>&lt;cfajaximport&gt;</code> at the top. </li>
  <li>I have an IIS virtual CFIDE directory
  pointing to <code>C:\ColdFusion2016\cfusion\wwwroot\CFIDE</code> </li>
  <li>Mapping in CFAdmin is correct</li>
  </ul>
  
  <p>There was not issue with CF9. But I notice CF11 has its scripts directory OUTSIDE the CFIDE directory on the same level (directory named "cf_scripts"), whereas CF9 has the scripts INSIDE the CFIDE directory. </p>
  
  <p>Before I stuff things up, has anyone any pointers in the right direction?</p>
  
  <h2>SOLUTION</h2>
  
  <p>For the benefit of others, I did the following: </p>
  
  <ul>
  <li>CFAdministrator <code>Default ScriptSrc</code> directory: <code>/CF_SCRIPTS</code> </li>
  <li>IIS Virtual Directory: <code>CF_SCRIPTS</code> pointing to <code>C:\ColdFusion2016\cfusion\wwwroot\cf_scripts\scripts\</code></li>
  </ul>