title: jquery getJSON call to cfc works on test server but not live
body: <p>I have a page that's using getJSON to access a cfc within the same domain.  Everything works fine on the development server, but not on live.  Other jquery executes fine, just not the .getJSON call.  I've tried several examples from around the web too, and using ajax instead of getJSON, but the result is always the same - fine on test, not on live.  </p>
  
  <p>Here is the code I'm currently using to test, which is a stripped-down version of an example at <a href="http://www.christopherchin.com/blog/index.cfm/2010/3/25/HELP-CFCjqueryJSON" rel="nofollow">http://www.christopherchin.com/blog/index.cfm/2010/3/25/HELP-CFCjqueryJSON</a>.</p>
  
  <hr>
  
  <p>index.cfm:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  chkUsernameUnique = function(theUsername){
      $.getJSON("/jsonTest/mycfc.cfc", {
      method: 'chkUsername',
      Username: theUsername,
      returnformat: 'json'
      }, function(isUsernameUnique){
          $("#theErrorDivID").html(isUsernameUnique);
      });
  };
  &lt;/script&gt;
  
  &lt;input type="text" name="username" id="username" onchange="chkUsernameUnique(this.value);" /&gt;
  
  &lt;div id="theErrorDivID"&gt;&lt;/div&gt;
  </code></pre>
  
  <hr>
  
  <p>mycfc.cfc:</p>
  
  <pre><code>&lt;cfcomponent&gt;
  &lt;cffunction name="chkUsername" access="remote" returnformat="json" output="false"&gt;
      &lt;cfargument name="Username" required="true"&gt;
  
      &lt;cfset thisRecordCount=4&gt;
  
      &lt;cfreturn thisRecordCount&gt;
  &lt;/cffunction&gt;
  &lt;/cfcomponent&gt;
  </code></pre>
  
  <hr>
  
  <p>Ignore the fact that it doesn't do anything useful, this is purely for testing.  On the test server, it does what it should and displays 4 if I type something in the box.  On the liver server, it doesn't actually throw an error and the browser shows that the javascript is validating, but nothing happens.  At this point I'm thinking it may be a setting on the server or in the ColdFusion admin rather than anything to do with the code, but I'm not even sure where to start with that.  Any help would be much, much appreciated.</p>
  
  <hr>
  
  <p>Update: I see now in firebug that on the test server the response is 4.0, but on the live server it's //4.0.  What do the extra slashes mean?</p>