Why did the table stop requesting data from the server?

Why did the table stop requesting data from the server?

izumovizumov Posts: 178Questions: 14Answers: 0

My test case is http://montaj.vianor-konakovo.ru/purchase.html.When you try to disable the search field by setting sDom. The table has stopped requesting data from the server. Tell me where I made a mistake.

Replies

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    You have:

        $('#goods').DataTable(
        {sDom: 'lrtip'},
          
        {
            language: {
    

    Which is creating two object parameters, ie, $('#goods').DataTable( {...}, {...});, that are sent to DataTables for initialization. Remove the {} surrounding the dom option and place it in side the object with the other options, like this:

        $('#goods').DataTable(
        {
            sDom: 'lrtip',
            language: {
    

    Kevin

This discussion has been closed.