BX.ajax({ url: '/local/cbp/scripts/bron/actions/razviz-kp.php', // URL обработчика на сервере method: 'POST', dataType: 'json', timeout: 10, data: { dealID: <?= $dealID; ?>, }, onsuccess: function (response) { console.log(response); window.location.reload(true); }, onfailure: function (e) { console.error(e); } });