Solved

Event Listener for a specific popup

Posted on 2008-06-17
2
323 Views
Last Modified: 2013-12-02
Hello,

I have a reporting engine that works off of tomcat. This applet is then introduced in an iframe into a regular html page. When a person clicks on the View Report icon, a div then appears that says Processing. On one instance, when a user selects pdf, the div disappears as it should because they are forwarded to the next page. But whenever the user selects .xsl or .csv, then a popup appears to download a file. Unfortunately, the div layer does not disappear when this popup appears, nor when the user presses okay or cancel. Is there an event listener I can tie to this popup window for file download? That if a user presses okay or cancel that this div layer should then hide?
0
Comment
Question by:cgaviria
2 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21811299
Not likely. The download is a system generated dialog.
If you have the download in an iframe in the div you pop, then maybe...
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 21811883
You can assign some JavaScript event handlers on the click of the .csv or .xls link that hides the div.

<A HREF="<your .csv file" onClick="<call JavaScript method to hide the div>">
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
The viewer will learn how to implement Singleton Design Pattern in Java.
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)

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now