i am using jtable when i search records a i am getting this error JavaScript runtime error: cannot call methods on jtable prior to initialization; attempted to call method 'load' i am getting this error only in IE 9
var Visits = new Array();
var Procedures = new Array();
var Statuses = new Array();
var CoreLabStatuses = new Array();
$("#LstSelectedVisit option").each(function (index, ele) {
Visits.push($(this).val());
});
$("#LstSelectedProcedure option").each(function (index, ele) {
Procedures.push($(this).val());
});
$("#LstSelectedStatus option").each(function (index, ele) {
Statuses.push($(this).val());
});
$("#LstSelectedCoreLabStatus option").each(function (index, ele) {
CoreLabStatuses.push($(this).val());
});
/* ### Getting selected Visits, Procedures and Status(End) ### */
//calling server side to blank temp data function
$.ajax({
url: '@Url.Action("BlankTempData")',
type: 'POST',
//contentType: 'application/json',
//data: model.serialize(),
success: function (result) {
$('#CaseGridContainer').jtable('load', {
Trial: $('#ddlTrial').val(),
Received_Date: $('#txtReceivedDate').val(),
Site_Id: $('#ddlSite').val(),
Study_Date: $('#txtStudyDate').val(),
ReceivedDateStart: $('#txtReceivedDateStart').val(),
ReceivedDateEnd: $('#txtReceivedDateEnd').val(),
StudyDateStart: $('#txtStudyDateStart').val(),
StudyDateEnd: $('#txtStudyDateEnd').val(),
Subject_id: $('#txtSubjectID').val(),
Job_id: $('#txtJobID').val(),
MDDX_id: $('#txtMDDXID').val(),
Patient_Name_tag: $('#txtPatientsNameTAG').val(),
CoreLab: $('#ddlCoreLab').val(),
lstVisit: Visits.join(),
lstProcedure: Procedures.join(),
lstStatus: Statuses.join(),
lstCoreLabStatus: CoreLabStatuses.join()
});
}
});
In your copy of jtable seeks closeChildTable function and replace it with this: