var userModulesAccess_obj = {
user_id: $('#pp_user_id').val()
};
var userModulesAccess_obj_encoded = JSON.stringify(userModulesAccess_obj);
$.ajax({
url: API_URL + 'analytics_board/userModulesAccess',
type: 'POST',
async: false,
data: userModulesAccess_obj_encoded,
dataType: 'json',
error: function (data) {
console.log(data);
//window.location.replace(WEB_URL + 'login');
},
success: function (data) {
BootstrapDialog.closeAll();
if (data.status_code != '2000') {
window.location.replace(WEB_URL + 'login');
}
},
complete: function (data) {
console.log(data);
}
});
=======
Now print in php using file_get_contents('php://input')
No comments:
Post a Comment