Uncaught TypeError: Cannot read property 'ext' of undefined
Uncaught TypeError: Cannot read property 'ext' of undefined
Unnamed
Posts: 1Questions: 0Answers: 0
Hello i have this error Uncaught TypeError: Cannot read property 'ext' of undefined in this file button.html5.min.js
So the button's wont display
Table
<table id="example">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>etc</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Data 1</td>
<td>Row 1 Data 2</td>
<td>etc</td>
</tr>
<tr>
<td>Row 2 Data 1</td>
<td>Row 2 Data 2</td>
<td>etc</td>
</tr>
</tbody>
</table>
Scripts
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/buttons.html5.min.js"></script>
<script src="js/buttons.html5.js"></script>
<script src="js/dataTables.buttons.min.js"></script
<script src="js/dataTables.buttons.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/jszip.min.js"></script>
<script src="js/pdfmake.min.js"></script>
<script src="js/vfs_fonts.js"></script>
$(document).ready(function() {
$('#example').DataTable( {
dom: 'Bfrtip',
buttons: [
'copyHtml5',
'excelHtml5',
'csvHtml5',
'pdfHtml5'
]
} );
} )>
Any help please
This discussion has been closed.
Replies
I have the same problem.
Load DataTables before Buttons. After all, Buttons is an extension for DataTables!
Use the download builder if you want it to figure out the load order for you.
Allan