Sherzy
3/17/2016 - 5:20 PM

jQuery POST

jQuery POST

 var req = $.ajax({
        url: "/web/",
        type: "POST",
        data: JSON.stringify({ id: id }),
        dataType: "json",
        contentType: "application/json; charset=utf-8"
    }).done(function (msg) {
        console.log(JSON.parse(msg.d));
    }).fail(function () {
        Nimboo.log("FAIL");
    });