У меня проблема с кодом базы данных "ajax": файл не читается - PullRequest
0 голосов
/ 23 октября 2019

Если кто-то может мне помочь, я бы хотел использовать 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
} );
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...