Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!