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

Confirm message box only with Ok button.

 
Shwetha Jagadish
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to have a Confirm Message box only with 'Ok' but without Cancel button. The purpose of this is i want to have a popup box with one button with the return value of true.
Alert box has one button but it wont return any value. So i want to have a popup box with a return Boolean value.

Please suggest how to do this.

Thanks,
Shwetha.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't be done with the built-in confirm(). You'll need to build your own.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shwetha Jagadish wrote:Hi,

Alert box has one button but it wont return any value. So i want to have a popup box with a return Boolean value.


If it is only going to be true, why do you need it to return true? Seems like overthinking.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic