title: newbie jquery/ajax: why error?
body: <p>I've made this simple html page but get "error" alert popup when calling example.com.  Why?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;body&gt;
          &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              function errorAlert(e, jqxhr) {
                  alert("Your request was not successful: " + jqxhr);
              }
              function processData() {
                  alert("success")
              }
              $.ajax(
              {
                  type: "post",
                  url: "http://example.com",
                  success: processData,
                  error: errorAlert
              }); //end of $.ajax
              &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm running on Chrome 45.0...</p>