title: Refresh Page after AJAX - sometimes fails
body: <p>I'm using this to refresh/reload a page once ajax completes.</p>
  
  <pre><code>$(".method").click( function() {
      if (confirm('Do  : ' + $(this).attr('method') + ' ?')) {
          $.ajax({ url : 'go.php?method=' + $(this).attr('method'),
          success: function(){
             setTimeout(function(){
             window.location = "?method=view";
              }, 100);
          }
     });
  }
      return false;
  });
  </code></pre>
  
  <p>Some times it works and the page refreshes, other times the ajax part works but the page doesn't refresh.</p>
  
  <p>go.php is always called and runs correctly.</p>
  
  <p>Any to get it to work all the time ?</p>
  
  <p>Thanks</p>