This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes dialog box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "dialog box" Watch "dialog box" New topic

dialog box

Kinga Cserveny

Joined: Aug 29, 2001
Posts: 18
I need to put a short java script into my java code that will load a dialog box with a continue and a cancel button. Can anyone help me? I only know of the javascript:alert which puts an ok button on the dialog box. But I need a cancel button too.
Thanks for your help...
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12999
You should ask that question in the HTML and JavaScript forum. JSP = JavaServer Pages - which is a separate technology that runs only on the server side.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can try a JavaScript's comfirm() dialog box. It gives you both ok and cancel buttons

So much trouble in the world -- Bob Marley
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: dialog box
jQuery in Action, 3rd edition