• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

pop ups  RSS feed

 
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 !!
 
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
 
Author and ninkuma
Marshal
Posts: 66806
168
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.
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!