title: Success callback not working properly for $.ajax
body: <p>I have a problem which is similar to <a href="https://stackoverflow.com/questions/4545901/redirecttoaction-not-working-when-called-by-jquery">this stackoverflow</a></p>
  
  <p>I am sending a list of selected objects to an "Update" method. That works fine, the problem is on the success callback. It does not happen for some reason. The page just sort of blinks once. In firebug's net tab I can see call to the url. The controller returns bool so in the Response I just have <code>true</code>. But obviously what I want to do is update the page based on that bool. This is MVC2 project-not sure if this has to do with it.</p>
  
  <pre><code>$.ajax({
      url: "/Update/UpdateAll",
      dataType: 'json',
      type: "POST",
      data: { selected: selected, statusID: statusID },
      success: function (result) {
          if (result) {
              alert('all successful');
              $('#resultsFromUpdate').html("Success");
          }
          else {
              alert('no deal');
              $('#resultsFromUpdate').html("Fail");
          }
      }
  });
  </code></pre>
  
  <p>and <code>UpdateAll</code> controller method:</p>
  
  <pre><code>public bool UpdateAll(string selected, string statusID)
  {
  ...
  &gt; update some things
  &gt; return true if fine
  &gt; return fasle if not
  ...
  }
  </code></pre>
  
  <p>This is exactly the point of using AJAX, not requiring a page post...So what am I doing wrong ?</p>