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

175
Visualizações
Data table Server side set to true not working

I have Data table and large data set and want to set server side script to true, it is working fine on localhost but when I moved the code to server it is showing Data table error. I have inspected the loading script it returns page not found and if Serverside is set to false it is working fine but very slow. Tried too many options from different forum but nothing seems to be working can some one help me out in this.

For reference

This is my script:

 function fill_datatable(BusinessUnit = '', CurrOrg1 = '', CurrOrg2 = '', Role = '', Region = '' , Gender = '', CurrOrg3 = '' , CurrOrg4 = '', CurrOrg5 = '', ProfessionalClassification = '',L6 = '',L7 = '', Account = '')
    {
        var dataTable = $('#members_data').DataTable({
            // dom: 'Bfrtip',
            // buttons: ['excel'],
            processing: true,
            serverSide: true,
    

            ajax:{
                url: "{{ route('Predictions.index') }}",
                data:{BusinessUnit:BusinessUnit,CurrOrg1:CurrOrg1,CurrOrg2:CurrOrg2,Role:Role,Region:Region,Gender:Gender,ProfessionalClassification:ProfessionalClassification,CurrOrg3:CurrOrg3,CurrOrg4:CurrOrg4,CurrOrg5:CurrOrg5,L6:L6,L7:L7,Account:Account}
            },
            
            columns: [
                {
                    data: 'EmployeeNumber',
                        name: 'EmployeeNumber'
..

This my Route:

Route::resource('/Predictions', PredictionsController::class);
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

have you tried with code like this?

var dataTable = $('#members_data').DataTable({
        // dom: 'Bfrtip',
        // buttons: ['excel'],
        processing: true,
        serverSide: true,
        url: "{{ route('Predictions.index') }}" or "{{ url('/Predictions') }}"

         ajax:{
            url: url,
            ...
        },

Sorry if you've tried it.

about 4 years ago · Juan Pablo Isaza Relatório
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