this is my code ....
if (response.result == "OK") {
if (confirm('Are you sure you want to edit this?')) {
DayPilot.request("backend_move.php",
function(req) { // success
var response = eval("(" +req.responseText + ")");
if (response && response.result) {dp.message("Moved: " +response.message);
}
},
args,
function(req) { // error
dp.message("Saving failed");
}
);
//loadEvents();
} else {
args.preventDefault();
}
}