title: $.ajax() success and error not getting called
body: <pre><code>$.ajax({
      url: "captcheck.php",
      type: "GET",
      data: "code="+captcha.val(),        
      cache: false,
      success: function (html) {              
          if (html==1) {  
              captcha.removeClass('validation-error',animateSpeed);
              return true;
          } 
          else {
              captcha.addClass('validation-error',animateSpeed);
              return false;
          }    
      },      
      error: function(httpRequest, textStatus, errorThrown) { 
          alert("status=" + textStatus + ",error=" + errorThrown);
      }
  });
  </code></pre>
  
  <p>Now this is a pretty simple ajax function, but neither is its success getting called nor error, i checked the XHR with response on the firebug and its perfect, still neither success nor error getting called. Can anyone please help?</p>