Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

233
Vistas
have tabulator using a gz compressed json file without enabling compression on the web server

I can't change the web server so I can't enable compression on the .json file automatically. This would be my ideal solution.

I would like tabulator to pull down a json file that is compressed to a gz file, but I don't know if it's possible or what I would need to do in order to tell it to decompress it before trying to use it.

Is there a way to set the ajaxURL to gz and it work?

Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You could use the ajaxResponse callback to take the incoming compressed data and then decompress it before passing it into Tabulator.

In this example im going to use the advice of this GZip Stack Overflow Question so you will need to copy the uncompress function from there

var table = new Tabulator("#exmaple-table", {
    ...other table config
    ajaxResponse:function(url, params, response){
        return uncompress(response);
    },
});

Full details of the ajaxResponse callback can be found in the Ajax Documentation

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda