$.ajax({
        url: url,
        dataType: "json",
        type: "POST",
        beforeSend: function() {