title: .ajax() post request to send JSON data to server only works in debug mode
body: <p>I'm trying to add a json string to the DB, and calling a web-service in the URL of the ajax call. The string is inserted in the DB when I step through the code with the chrome debugger. However, if I don't run in debug mode, I get an error message whose response text is blank.</p>
  <p>I know the problem is <b>NOT</b> with the web serbvice as it works fine independantly. Does anyone know why this may happen?</p>
  <h3>Here's some code</h3>
  <pre><code>var object1 = { obj: 'newobj2' };
          
          $.ajax({
              type: 'POST',              
              url: 'saveJSON.asmx/submitToDB',
              dataType: 'json',
              data: object1,
              success: function () { alert(&quot;success&quot;); },
              error: function (response) {
                  alert(&quot;error: &quot; + response.responseText);
              }
          });
  </code></pre>