title: Why HourGlass not working with synchronous AJAX request in Google Chrome?
body: <p>I am executing a function where first I am making cursor to wait state(hourglass) and then I am sending a synchrounous AJAX request .After getting the response I am making cursor to default state.</p>
  
  <p>The Actual Code is this..</p>
  
  <p>// tests the smtp settings
  function TestSettings()
  {
      var buttonparams= new Object();</p>
  
  <pre><code>buttonparams.IsCommandButton = true;
  buttonparams.ButtonId = "testsettings";
  buttonparams.ButtonText = "Sending Test Mail...";
  buttonparams.ButtonOrigText = "Test Settings";
  
  if(buttonparams.IsCommandButton == true)
      HandleButtonStatus(true, buttonparams);
  
  var request = function()
  {
      var ret = SendForm(buttonparams);
  
      alert(ret);
  
  }
  window.setTimeout(request, 0);  
  </code></pre>
  
  <p>}</p>
  
  <p>function SendForm(pButtonParams) 
  {
      var http;
      var formdata;</p>
  
  <pre><code>http = yXMLHttpRequest();
  
  http.open("POST", "./", false);
  http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
  http.setRequestHeader("Req-Type", "ajax");
  formdata = xEncodePair("_object", "PrefMgr")+ "&amp;";
  formdata += xEncodePair("_action", "SmtpTest")+ "&amp;";
  formdata += GetEncodedFormData();   
  
  http.send(formdata);
  
  if(http.status == 200)
  {   
      if(pButtonParams.IsCommandButton == true)
          HandleButtonStatus(false, pButtonParams);
  
      return (http.responseText);
  }   
  else
  {
  
      return ("Error " + http.status + ": " + http.statusText);   
  }   
  </code></pre>
  
  <p>}</p>
  
  <p>function HandleButtonStatus(pIsButtonStatusChange, pButtonParams)
  {
      var button = yById(pButtonParams.ButtonId);</p>
  
  <pre><code>if(pIsButtonStatusChange)
  {
          document.body.style.cursor = "wait";
      button.value = pButtonParams.ButtonText;
      button.disabled = true;
  
  }
  else
  {
      document.body.style.cursor = "default";
      button.disabled = false;
      button.value = pButtonParams.ButtonOrigText;
  }
  </code></pre>
  
  <p>}</p>