Solved

Close popup after agent finishes running

Posted on 2010-11-25
3
705 Views
Last Modified: 2013-12-18
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?
0
Comment
Question by:Sam654
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 34217576
Maybe you need to add, to the body-tage:
      onload="window.close()"

Other way: use a hidden Iframe to run the agents.
0
 
LVL 7

Author Closing Comment

by:Sam654
ID: 34219732
Wow, wasn't expecting that to be such a tough question. Good work arounds, thanks.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 34220011
You're welcome :-)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question