hello,
I have a calendar, if I click on any date the my context menu show successfully, but when I click on the list of context menu I call a ajax method for call services.
I try the same code without any different Its work fine, but in this new project it doesn't? I don't know what is that mean[object XMLHttpRequest]

this is my code on two project
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" type="text/javascript"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"type="text/javascript"></script><script src="assets/js/jquery-ui.custom.min.js" type="text/javascript"></script><!-- ace scripts --><script src="assets/js/ace-elements.min.js" type="text/javascript"></script><script src="assets/js/ace.min.js"></script><!-- inline scripts related to this page --><script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script><script type="text/javascript">$(document).ready(function () {
window.onclick = hideContextMenu;
window.onkeydown = listenKeys;
});
var contextMenu = document.getElementById('contextMenu');
var myUpdatePanel = '<%=upAttendance.ClientID %>';
function listenKeys(event) {
var keyCode = event.which || event.keyCode;
if (keyCode == 27) {
hideContextMenu();
}
}
function hideContextMenu() {
contextMenu.style.display = 'none';
}
function showContextMenu(event, selectedDate) {
contextMenu.style.display = 'block';
contextMenu.style.left = event.clientX + 'px';
contextMenu.style.top = event.clientY + 'px';$('#hdv_date').val(selectedDate);
return false;
}
function absentClick() {
$.ajax({
url: 'Attendance.asmx/Attendance_Insert',
data: "{'date':'" + $('#hdvDate').val() + "','type':'1','studentID':'" + $('#hdvStudentID').val() + "','createdBy':'" + $('#hdvCreatedBy').val() + "'}",
contentType: "application/json;charset=utf-8",
type: "post",
success: function () {
if (myUpdatePanel != null) {
__doPostBack(myUpdatePanel, '');
}
},
error: function (error) {
alert(error);
}
});
return false;
}//// Day Render
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
string method = "return showContextMenu(event,'" + e.Day.Date.ToShortDateString() + "')";
e.Cell.Attributes.Add("oncontextmenu", method);
}