Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customized window with no x- button

 
Manoj Rawat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!! All

I want to show a customized window which will show some data but in that window i wants to hide the the x-button(user is not allowed to close the window with x-button, for that i have given i log out button in the window itself).
Currently i'm calling JSP page with showModalDialog() and have put some code if user accidently close the window by clicking x-button like onBeforeonload(). but the problem is, the code is not working for netscape and opera.

thnx in advance for the suggestion

Regards
Manu
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a JBoss question. Moving to "HTML and JavaScript"...
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what you can do, is to show 2 divs instead of new browser window.
One is transparent and covers the whole document to make it all "disabled", another one in the middle of a page, on top of first one for user to enter information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic