Close popup after agent finishes running

Notes app for the Web. An action opens a new browser window (popup style), the user selects an option by clicking a link. The link calls a Javascript function that gets the window.opener to run an agent and then runs another agent itself. I would like the newly opened popup window to close once its agent has finished running.

If I do self.close() at the end of the Javascript Function, the agent will not run. I've tried putting
Print "[javascript:window.close();]"
at the end of my agent too, no go.

Does this make sense, any ideas?
LVL 7
Sam654Asked:
Who is Participating?
 
Sjef BosmanConnect With a Mentor Groupware ConsultantCommented:
Maybe you need to add, to the body-tage:
      onload="window.close()"

Other way: use a hidden Iframe to run the agents.
0
 
Sam654Author Commented:
Wow, wasn't expecting that to be such a tough question. Good work arounds, thanks.
0
 
Sjef BosmanGroupware ConsultantCommented:
You're welcome :-)
0
All Courses

From novice to tech pro — start learning today.