Object doesn't support property or method 'dataTable'
Object doesn't support property or method 'dataTable'
venum
Posts: 1Questions: 0Answers: 0
I am getting the above bug if I use jQuery-1.6 in my project. For jQuery-1.5.1 it is working fine. My code is:
[code]
$("body").ready(function () {
$("#grdIntVerifyOrder").dataTable({
"bServerSide": true,
"bStateSave": true,
"sAjaxSource": "Internal/ticket/IntVerifyOrder",
"bJQueryUI": true,
"sStripEven": "odd",
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sName": "ID", "bSearchable": false, "bSortable": false },
{ "sName": "Service_ID" },
{ "sName": "blank" },
{ "sName": "Service_Shift_Item_ID" },
{ "sName": "Shift_ID" },
{ "sName": "Status" },
{ "sName": "Notes" },
{ "sName": "ImportProcessStatus" } ]
});
});
[/code]
Thanks
[code]
$("body").ready(function () {
$("#grdIntVerifyOrder").dataTable({
"bServerSide": true,
"bStateSave": true,
"sAjaxSource": "Internal/ticket/IntVerifyOrder",
"bJQueryUI": true,
"sStripEven": "odd",
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sName": "ID", "bSearchable": false, "bSortable": false },
{ "sName": "Service_ID" },
{ "sName": "blank" },
{ "sName": "Service_Shift_Item_ID" },
{ "sName": "Shift_ID" },
{ "sName": "Status" },
{ "sName": "Notes" },
{ "sName": "ImportProcessStatus" } ]
});
});
[/code]
Thanks
This discussion has been closed.
Replies
Allan
[code]
availableSessionGroupDetailsTable = $('#availableSessionGroupDetailsTable').dataTable({ //grid is the id of the table
"bJQueryUI": true,
"bLengthChange": false,
"bFilter": true,
"sPaginationType": "full_numbers",
"bInfo": true,
'aaData': arrayData,
'bRetrieve': true,
'aoColumns': [
{ "bSearchable": true, "sTitle": "Name" },
{ "bSearchable": true, "sTitle": "Description" },
{ "bSearchable": false, "bVisible" : false }
]
});
[/code]
Would there be a specific reason this would happen in IE8?
Thanks,
Allan
[code]var availableSessionGroupDetailsTable = $('#availableSessionGroupDetailsTable').dataTable({ [/code]
Allan