¿Cómo puedo volver a escribir este código sin jQuery?
¿Cómo puedo reescribir este código sin usar jQuery? Necesito hacerlo en una aplicación móvil donde no puedo usar jQuery.
$.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);
}
});