title: How can I re-write this code without jQuery?
body: <p>How can I rewrite this code without using jQuery? I need to do it in a mobile app where I can't use jQuery.</p>
  
  <pre><code> $.ajax({
              type: "POST", 
              url:"../REST/session.aspx?_method=put",
              data: JSON.stringify(dataObject, null,4),
              cache: false,
              dataType: "json",
              success: onSuccessLogin,
              error: function (xhr, ajaxOptions){
                      alert(xhr.status + " : " + xhr.statusText);
                  }    
  
          }); 
  </code></pre>