Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pop ups

 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

can you be more specific what excatly you want to explain
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With modern day browsers you are not going to be able to pull this off because of pop up blockers.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic