error js

error js

semenjavasemenjava Posts: 7Questions: 1Answers: 0

Uncaught TypeError: Cannot set property '1' of undefined jquery.dataTables.js 3748
what could be the problem ?

Answers

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    Happy to take a look at a test case, if you link to one, as required in the forum rules.

    Allan

  • semenjavasemenjava Posts: 7Questions: 1Answers: 0

    странно установка datatable идет на https://dev.mlk.net.ua//datatables/examples/server_side/simple.html , но не идет в админке, может это быть связано шаблоном погрузки?

  • semenjavasemenjava Posts: 7Questions: 1Answers: 0

    sorry
    strange setting datatable is https://dev.mlk.net.ua//datatables/examples/server_side/simple.html but don't go in the admin panel, it can be connected with the template loading?

  • semenjavasemenjava Posts: 7Questions: 1Answers: 0

    The cause is found.
    it is impossible to prescribe the attributes
    <thead>
    <tr>
    <th class="thin checkbox-cell checkbox-cell-all"><input type="checkbox" id="all-checkbox"></th>
    <th rowspan="2">Barcode</th>
    <th class="title" rowspan="2">Название</th>
    <th rowspan="2">Производитель</th>
    <th rowspan="2">Цена</th>
    <th rowspan="2">Всего кол.</th>
    <!--<th colspan="4">Вся информаци поставок</th>-->
    </tr>
    <!--<tr>
    <th scope="col" data-attribute="dateOrdered">Дата поставок</th>
    <th scope="col" data-attribute="dateOrdered">Срок годности</th>
    <th scope="col" data-attribute="number">Кол. при поставки</th>
    <th scope="col" data-attribute="number">Закупочная цена</th>
    </tr>-->
    </thead>
    <tfoot>
    <tr>
    <th></th>
    <th rowspan="2">Barcode</th>
    <th rowspan="2">Название</th>
    <th rowspan="2">Производитель</th>
    <th rowspan="2">Цена</th>
    <th rowspan="2">Всего кол.</th>
    <!--<th colspan="4">Вся информаци поставок</th>-->
    </tr>
    <!--<tr>
    <th scope="col" >Дата поставок</th>
    <th scope="col" >Срок годности</th>
    <th scope="col" >Кол. при поставки</th>
    <th scope="col" >Закупочная цена</th>
    </tr>-->
    </tfoot>

  • semenjavasemenjava Posts: 7Questions: 1Answers: 0
    edited February 2017

    well, how do I create, for example: colspan="4" ?

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    You can use colspan in the thead (you can't in the tbody!), but you must still have one unique cell per column. See this example.

    Allan

  • semenjavasemenjava Posts: 7Questions: 1Answers: 0

    thank you

This discussion has been closed.