• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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
 
Marshal
Posts: 67197
169
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
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
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!