title: $.ajax not working
body: <p>I have used <code>$.post</code> before, now trying <code>$.ajax</code>, here is the code. I don't know why it aint working.</p>
  
  <p>I don't to know how to debug this thing as well, whenever I run this. I get error alert box </p>
  
  <pre><code>    $.ajax({ 
          type: 'POST',
          url: 'Handler1.ashx',
          data: { formula: "formulaId" },
          error: function (result) {
              alert('error');
          },
          success: function (result) {
              alert('success');
          }
      });
  </code></pre>
  
  <p>Handler1.ashx in the same folder</p>
  
  <pre><code>namespace RegistrationHTML.HTML
  {
      public class Handler1 : IHttpHandler
      {
  
          public void ProcessRequest(HttpContext context)
          {
              Console.Out.WriteLine("hi");
              context.Response.ContentType = "text/plain";
              context.Response.Write("Hello World");
  
              Console.Out.WriteLine("hi");
          }
  
          public bool IsReusable
          {
              get
              {
                  return false;
              }
          }
      }
  </code></pre>