Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

253
Visualizações
Having a problem with jquery datatables proper pagination

Trying to work around problem with datatables pagination. The problem is:

  1. I have some code to initialize Datatable in Laravel:
<script>
        $(document).ready(function () {
            $('.js-dataTable-full').DataTable({
                ajax: {
                    "url": "{{ route('page.data') }}",
                    "type": "GET",
                },
                "autoWidth": false,
                "serverSide": true,
                "pageLength": 5,
                "bSort": false,
                "searching": true,
                // "order": [[1, "desc"]],
                "processing": true,
                "paging": true,
                "pagingType": 'full_numbers',
    .......................................
    Some text below
  1. The data is loaded correctly, however there's still an issue with pagination. enter image description here As you see, the pagination links are not active and cannot be clicked, though text on the left clearly says that there are only 5 of 8 entries on the page.
  2. In the json response total number of items is present:

Part of json response viewed from the browser tools

No ideas by now, so any help would be appreciated.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda