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

120
Views
Event Listener for another window

I'll do my best to explain what I'm trying to do here:

I am creating a Google apps script add-on which has a sidebar interface. When the user clicks one of the buttons, it will load the Google File Picker for them to upload a file. Once the file is uploaded in the picker, the picker window is set to close automatically and then some background functions run (on the server side) to import the data from the selected file.

On the original sidebar I have a status bar at the bottom which shows if the add-on is still running or not (still importing the data). The problem is I can't update the status bar element to say it's done because it's a separate window (the picker window) that imported the file and then ran the server side functions.

I'm wondering if there is a way to have an event listener in the sidebar that checks to see if the picker window has been closed (after it runs the server side functions) so that it can then update the status bar to say "complete"?

I haven't been able to find anything about having an event listener that monitors another window.

Suggestions for another way of approaching this completely are welcome as well.

There is a callback function for the file picker window once a file has been uploaded. However, I'm not aware of a way to use that to write HTML on another window (the status bar to say "complete)

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!