aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes opening popup window conditionally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

opening popup window conditionally

Vaithiya Sundaram
Ranch Hand

Joined: Apr 22, 2004
Posts: 98
From a JSP called "ABC.jsp", when I click "View Item" button it should call
corresponding action class,process and display results(displayitems.jsp) in a popup window. for some reason if the result is error page or login page then the popup window should not be opened rather it should replace ABC.jsp in main window.

i.e.
If result is displayitems.jsp I want to open this jsp in pop up window and
keep ABC.jsp open in main window.
If result is some other page I want to replace ABC.jsp with result page in
main window.

how to do this opening the popup window conditionally i.e. based on result
page?

Your response is appreciated!
Thanks


Vaithiyanathan Sundaram<br />SCJP, SCBCD, SCEA part1
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

Please do not cross-post the same question in multiple forums.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: opening popup window conditionally