This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window with yes and no

 
sruthi reddy
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a situation where on click of a link in a jsp, a pop up window sholud open with title "are you want to go" and with two buttons yes and no.On yes, a other jsp will open and on no another jsp.Can anyone suggest me how to do this either using java or javascript.
Thanks
Sruthi
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only option you would have is to use layers [divs] to pop up a box that looks like a dialog. You can not chnage any features of alert/confirm to make it look different.

Eric
 
vk jain
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use following code

if( confirm("do you ........") )
{
//call other jsp
}
else
{
//call another jsp
}
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vk jain:
You can use following code
Not if the requirements are for the buttons to read "yes" and "no".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic