Questions tagged [bootbox]

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals.

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.


Useful resources :

459 questions
26
votes
8 answers

Multiple inputs in a Bootbox

How can I have 2 inputs instead of just one in Bootstrap's Bootbox? I need to receive 2 values in a modal dialog.
kambi
  • 3,291
  • 10
  • 37
  • 58
22
votes
6 answers

How to make bootbox closing when using custom dialog

I'm using bootbox to show dialog. If I use bootbox.confirm, bootbox.alert or bootbox.prompt, when pressing escape key or clicking outside the dialog, the dialog closed as expected but when using bootbox.dialog, when I click outside the dialog or…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
17
votes
4 answers

jQuery .validate() submitHandler not firing

I'm loading a dialog box with a form that's built on-the-fly using Bootbox.js and I'm validating user input with a jQuery validate plugin. Validation works just fine, but the submitHandler is ignored when the form is filled in successfully. What's…
david-l
  • 623
  • 1
  • 9
  • 20
15
votes
1 answer

Disable the Bootbox close button

I'm wondering how remove the "X" button that shows up on Bootbox alerts, confirms, prompts and dialogs. There are cases where you'd wish to require the user to provide a response--not just dismiss the pop-up with a click on the "X" button. Does…
Ectropy
  • 1,533
  • 4
  • 20
  • 37
14
votes
4 answers

bootstrap and bootbox: set dialog box center of the screen

I am using bootbox.js from http://bootboxjs.com/examples.html and it is quite impressive. But I have an issue while setting up the location of the dialog box. I want to place dialog box center of the screen. I am using this code but dialog box stays…
Roxx
  • 3,738
  • 20
  • 92
  • 155
14
votes
3 answers

Bootbox 4.1.0: how to pass localized strings such as Ok, Cancel to Bootbox's confirm?

In Bootbox 3.2.0, I was able to use confirm with strings passed as below: bootbox.confirm( confirm_string, cancel_string, yes_string, function(r) { if (r) { //do something } } ); I am…
curious1
  • 14,155
  • 37
  • 130
  • 231
14
votes
8 answers

Bootstrap and bootbox: dynamically change the width of confirmation window

I am using Bootstrap for a web application and using bootbox (http://bootboxjs.com) for showing a window before proceeding with a delete operation. For different delete options, I need to display different messages. I would like to show…
curious1
  • 14,155
  • 37
  • 130
  • 231
13
votes
3 answers

Using bootbox the show event is not fired

I'm not able to catch the show event for the bootbox.confirm dialog in order to do some css adjustments to the dialog before showing it. I tried things like the followings but didn't succeed: $(document).on("show.bs.modal", function (event)…
alloyoussef
  • 757
  • 3
  • 10
  • 24
13
votes
2 answers

How to customize Bootbox.js prompt options

I am trying to customize bootboxjs.prompt options, but it seems that it doesn't allow an options object as a parameter This is the example from http://bootboxjs.com/index.html#api bootbox.prompt("What is your name?", function(result) { …
Mariano J. Ponce
  • 174
  • 1
  • 2
  • 9
13
votes
2 answers

Close Twitter Bootbox after x seconds

Is it possible to close a twitter bootbox after 10 seconds?! i open it like this: bootbox.confirm("{{$steps[0]}}","accept","decline" ,function(result) { if (result) { } });
davidOhara
  • 1,008
  • 5
  • 17
  • 39
13
votes
4 answers

Bootbox Confirm Dialog problems

Unfortunately, the doc Bootbox ( http://paynedigital.com/2011/11/bootbox-js-alert-confirm-dialogs-for-twitter-bootstrap ) not teach how to call the confirm dialog. As it is in the doc window always appears when the page is loaded, what is wrong,…
LinuxMan
  • 427
  • 1
  • 7
  • 18
12
votes
1 answer

Prevent bootbox from closing pop-up window

I am using bootbox to make pop-up windows with forms and I have to validate them and throw error to user if something is wrong with the form fields. But I cannot prevent bootbox window from closing after user clicks 'Send' button. I need to show…
iwazovsky
  • 1,919
  • 3
  • 20
  • 35
12
votes
3 answers

Bootbox: Callback function after dismissing the dialog / Clicking on the 'X' button

The following snippet allows me to perform stuff in a callback function for the buttons that are clicked. However, how can I get a callback function, or a similar workaround such that I can perform some code when a user clicks on the 'X'…
Null Reference
  • 11,260
  • 40
  • 107
  • 184
11
votes
7 answers

What's C#'s await equivalent in javascript/jquery?

I'm using a jQuery library called bootbox bootbox.dialog({ title: "Group", buttons: { success: { label: "OK", className: "btn-success", callback: function () { postForm(); …
Null Reference
  • 11,260
  • 40
  • 107
  • 184
10
votes
6 answers

Bootbox js : Change placement of Ok Button

In bootbox.js, by default Ok button showing after Cancel button. I want it to be first and then cancel. Here is the situation of current scenario, http://paynedigital.com/img/confirm-simple.png I need Ok button first. I have scene its documentation…
Maha Dev
  • 3,915
  • 2
  • 31
  • 50
1
2 3
30 31