Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Close popup after agent finishes running

Posted on 2010-11-25
3
Medium Priority
?
710 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
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…

604 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