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

282
Vistas
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 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