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

283
Visualizações
How to import js file to another js file without node js

I got a gui built with html css js, I need to connect that gui to a server in cpp, I decided to use sockets to communicate. I have one js file that is in charge to communicate with the server and I want all of the page's js files to use the function in the communicator. Import wont work beacuse I'm not inside moudle(and when I tried to change it to moudle the html files couldnt see the functions in the js files(and on event listener doesnt work) so I cannot use it to onClick events. and require doesnt work beacuse it requires node js(which I tried but it couldnt see my other js files and got a problem with permissions in the browser). I would like to help me solve it. thank you very much!

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