Encountered a Data Table Error when running my MVC Web App in an IE Browser

1

As I run the project I get this error sent back to me.

Unhandled exception at line 257, column 1 in http://localhost:54123/Scripts/Custom/custom-validation.js

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'DataTable'

And below is the part of the code it's referring to..

$('.dtable-fd').DataTable({
    "aoColumnDefs": [{
        'bSortable': false,
        'aTargets': [0,1]
    }],
});

The project works fine when running on a Chrome Browser, but encounters this error when running it on an Internet Explorer Browser. What should I do?

javascript
c#
asp.net-mvc
asp.net-mvc-4
asked on Stack Overflow Sep 17, 2015 by Tam Landas

1 Answer

0

DataTable are supported in IE. Check your HTML code, has any tag not closed. Check this link, it might help you It solved similar problem I guess

answered on Stack Overflow Sep 17, 2015 by Gagan Jaura

User contributions licensed under CC BY-SA 3.0