Posted 20 February 2020, 10:01 am EST
Hi,
I’m trying to use the C1Dialog when a error occurs to show the end user a message but I keep getting: -
0x800a138f - JavaScript runtime error: Unable to get property ‘_focusTabbable’ of undefined or null reference
This is my Ajax call: -
function CICSelected() {
var ReturnResult = 0;
$.ajax({ //Check to see if a CIC has first been selected.
type: "POST",
url: "CICMaint.aspx/CICSelected",
data: "",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
cache: false,
success: function (response) {
if (response.d) {
ReturnResult = 1;
} else {
ShowMessage('Edit CIC', 'You need to select a CIC first.');
ReturnResult = 0;
}
},
error: function (xhr, status, error) {
alert("AJAX Error (CICSelected): " + xhr.responseText);
}
});
return ReturnResult;
}
Here is my code to show the dialog: -
function ShowMessage(Title, Message) {
$("#ctl00_ContentPlaceHolder1_MessageBox").c1dialog("option", "title", Title);
$("#ctl00_ContentPlaceHolder1_MessageBox_lblMessageBox").text(Message);
$('#ctl00_ContentPlaceHolder1_MessageBox').c1dialog('open');
}