I have following Code in my layout.cshtml file every thing is working fine but at each click i get This error Message, how could I cop up with this error,
@{Html.EnableClientValidation();}
<script type="text/javascript" charset="utf-8">
// put all your jQuery goodness in here. ,
$(document).ready(function () {
$("table tr:nth-child(even)").addClass("row-alternating");
$('.tblSearchResults').dataTable({
"sPaginationType": "full_numbers",
"bLengthChange": false,
"bInfo": false,
"aaSorting": [[1, "desc"]]
});
$('.tblSearchResults').addClass("data-table");
});
</script>
qqaadir
Member
96 Points
150 Posts
Microsoft JScript runtime error Object doesn't support this property:dataTable
Jun 25, 2012 06:01 PM|LINK
Hi,
I have following Code in my layout.cshtml file every thing is working fine but at each click i get This error Message, how could I cop up with this error,
@{Html.EnableClientValidation();} <script type="text/javascript" charset="utf-8"> // put all your jQuery goodness in here. , $(document).ready(function () { $("table tr:nth-child(even)").addClass("row-alternating"); $('.tblSearchResults').dataTable({ "sPaginationType": "full_numbers", "bLengthChange": false, "bInfo": false, "aaSorting": [[1, "desc"]] }); $('.tblSearchResults').addClass("data-table"); }); </script>thank You
asp.netmvc3
rjdudley
Star
10145 Points
1976 Posts
ASPInsiders
Re: Microsoft JScript runtime error Object doesn't support this property:dataTable
Jun 25, 2012 07:44 PM|LINK
Usually this means you haven't referenced the Data Tables plugin. Check your script references and make sure you have one like
Data tables are not core jQuery.
qqaadir
Member
96 Points
150 Posts
Re: Microsoft JScript runtime error Object doesn't support this property:dataTable
Jun 26, 2012 10:42 AM|LINK
I have tried on some other browser like chrome it woking not giving me this error
Whats up there in Chrome that is not in IE?
rjdudley
Star
10145 Points
1976 Posts
ASPInsiders
Re: Microsoft JScript runtime error Object doesn't support this property:dataTable
Jun 26, 2012 10:51 AM|LINK