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

262
Visualizações
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 à 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