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

150
Vistas
reload local jsonp file as variable in website

I have a local webpage that loads a large json database file by having a file called data.jsonp containing data={json dictionary of stuff}, then importing said file in my HTML with <script src="data.jsonp"></script> to load data as a variable containing the whole database, which works.

I now need to be able to change the content of the data.jsonp file and have the data variable update without refresing the whole website. I can edit data.jsonp, but how do I apply this change to the data variable?

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

0

Add another <script> tag to the DOM, and it will reload the script:

let script = document.createElement("script");
script.src = "data.jsonp";
document.head.appendChild(script);
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