File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes pop ups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "pop ups" Watch "pop ups" New topic
Author

pop ups

manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
I have one main jsp which calls two pop-ups
1.abc
2.xyz

my requirement is - I want to close pop up xyz automatically when pop up abc is closed due to some user action.

Actually in my 'abc' jsp, I am calling a servlet which reads the xls,pdf,doc files from server. And as soon as the xls/doc file is open the 'abc.jsp' automatically gets closed which we want. Now the other pop-up(xyz.jsp) is responsible for showing the message " please wait while report is openeing..." and as soon as the report is open, abc.jsp (pop up 1) is cloased , so logically other pop up (xyz) should also get closed.

please help !!
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,

This would most likely have to be done client side in JavaScript rather than in the JSP.

Also it might be worthwhile looking at other options as I don't think popups are the best way to go about this (of course that is just my opinion).
This really does sound like Ajax territory really.

Sean


I love this place!
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
Hi Sean,

can you be more specific what excatly you want to explain
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
With modern day browsers you are not going to be able to pull this off because of pop up blockers.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pop ups
 
Similar Threads
opening popup window conditionally
"Please wait ...." message to be displayed
opening popup window conditionally
to open new window from a servlet
opening popup window conditionally