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

264
Vistas
same js script does not work on different html pages

first page of mine located in root folder of the project has name start.html and contains this <script> nodes:

  <script src='https://code.s3.yandex.net/web-code/smoothly.js'></script>
  <script src="./core/mainStrings.js"></script>
  <script src="./chapters/lore/lorescript.js"></script>

this page works completely fine. second page of mine has name makeCharacter.html and contains this <script> nodes:

  <script src='https://code.s3.yandex.net/web-code/smoothly.js'></script>
  <script src="./core/mainStrings.js"></script>
  <script src="./chapters/makeCharacter/characterScript.js"></script>

i use mainStrings.js to contain all the main data from the input buttons of the pages and using it on other pages. when i try to execute characterScript.js it goes out with undefined parameters error. it does not have parameters that is holded in mainStrings.js. i think that mainStrings is not loading on the page and have no clue why.

error when code executing is here

structure of files is here

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