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

132
Views
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
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!