0x800a138f - JavaScript runtime error: Unable to get property 'x' of undefined or null refere
0x800a138f - JavaScript runtime error: Unable to get property 'x' of undefined or null refere
I've seen questions like this answered before, where the most common problem is that the number of columns in the table header and the body do not match. However, mine do match, and I still get this error. I downloaded DataTables yesterday from NuGet. This is my first attempt to use the DataTables tool. Following is my table. Please let me know what other solutions there might be. Style fiveColumnWidth just gives a width: 20% to each. I tried it without that class at all, and without any class on the table line as well. None of these attempts worked.
- John
<table id="workstationTable" class="table table-striped table-bordered table-hover workstationTableStyle">
<thead>
<tr>
<th class="fiveColumnWidth">Profile</th>
<th class="fiveColumnWidth">Model</th>
<th class="fiveColumnWidth">Host</th>
<th class="fiveColumnWidth">IP Address</th>
<th class="fiveColumnWidth">Build State</th>
</tr>
</thead>
<tbody>
@foreach (var w in Model.WorkstationVMInfo)
{
<tr>
<td class="fiveColumnWidth">@w.groupname</td>
<td class="fiveColumnWidth">@w.modelname</td>
<td class="fiveColumnWidth">@w.hostname</td>
<td class="fiveColumnWidth">@w.ipaddress</td>
<td class="fiveColumnWidth">@w.buildstatename</td>
</tr>
}
</tbody>
</table>
This question has an accepted answers - jump to answer
Answers
It gets more curious. That error only appears in IE. In Chrome, I get a warning pop up that I need version 1.10 or higher. However, I have 1.10.12 loaded. Here is the warning:
The page at localhost:x says:
Warning: Scroller requires DataTables 1.10.0 or greater -
www.datatables.net/download
Do you need a full test case on the DataTable live site, or the above detailed enough information to answer the question?
Yes please. A test case is required :-)
Allan