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

133
Vistas
Google autocomplete callback pointing to a function inside a Javascript module

I am getting started with the Google autocomplete API where the following code is included in the script tag. However, the callback function initAutocomplete is inside a module and I am not able to call it.

<script src="https://maps.googleapis.com/maps/api/js?key=APIKEYGOESHERE&libraries=places&callback=initAutocomplete" async defer></script>

Could someone kindly advise on the best approach for this? Alternatively, how would I format the contents of the script tag to sit inside a js module?

Thanks in advance!

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