wood burning stoves 2.0*
The moose likes JSP and the fly likes javascript confirm message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "javascript confirm message" Watch "javascript confirm message" New topic
Author

javascript confirm message

sowmya vasisht
Ranch Hand

Joined: Aug 23, 2001
Posts: 35
Javascript confirmation message will pop-up the message giving the user the option "OK" and "Cancel". The requirement in my project is such that confirmation message should display the "Yes" and "No" as the options for the User.
Could anyone plz help me out.
Thanx in advance.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Unfortunately you can't change the javaScript ok/cancel buttons to yes/no. Try the JavaScript or HTML forums. They may have better solutions for you there.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
sowmya vasisht
Ranch Hand

Joined: Aug 23, 2001
Posts: 35
Originally posted by Bosun Bello:
Unfortunately you can't change the javaScript ok/cancel buttons to yes/no. Try the JavaScript or HTML forums. They may have better solutions for you there.


thank you
Zakaria Haque
Ranch Hand

Joined: Jan 02, 2002
Posts: 60
Rather than using javascript's built in dialogue box, use a new small sized browser window with your message (and other html stuffs to make it pretty)and necessary controls. Use javascript for event handling. You can write down the page using javascript as well, if you dont want to send another requst to the server. The only problem is, the dialogue box will not be modal.
Hope it helps.


tobe bondhu nouka bherao<br />shonabo gaan aj shara raat
Brian Glodde
Ranch Hand

Joined: Jun 27, 2001
Posts: 171
Here's a very slick idea I've implemented in the past...Javascript dialog boxes with some VBScript mixed in there...
Here's an automated tool that will help you create the script
Couldn't resist.
 
wood burning stoves
 
subject: javascript confirm message
 
Similar Threads
How to take out confirmations
Array of checkboxes
Confirmation message in Struts using JavaScript
Menu vs. TextField for search Criteria on the GUI
To control the alert message