Если кто-то может мне помочь, я бы хотел использовать ajax-файл из другого файла, но данные не отображаются. Если кто-то может проверить, работает ли этот скрипт. И если есть возможность взять данные из html-файла или из двух мест, например:
File 01 "ajax": "http://laliquedata.usite.pro/dataajax/arrays.txt", File 02 "ajax": "http://laliquedata.usite.pro/dataajax/arrays.txt",
new:
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css"> <script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script> <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script> <table id="example" class="display" style="width:100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Extn.</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tfoot> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Extn.</th> <th>Start date</th> <th>Salary</th> </tr> </tfoot> </table> $(document).ready(function() { $('#example').DataTable( { "ajax": "http://laliquedata.usite.pro/dataajax/arrays.txt", "deferRender": true } );