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
3
votes
1 answer

Prevent tab content display in bootstrap 3?

I am using bootstrap and bootbox plugin, and i have this code Here is link to plugin http://bootboxjs.com/#download I am showing nex tab with data attribute, what i need is when user click on second to display bootbox alert and prevent second tab to…
Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142
3
votes
3 answers

Get value from bootbox confirm callback function

console.log(r); gets nothing. How can I pass the result to r variable when using bootbox function jconfirm(m){ bootbox.confirm({ message: m, buttons: { 'cancel': { label: 'No' …
user3351236
  • 2,488
  • 10
  • 29
  • 52
3
votes
2 answers

How can you pass a variable to Bootbox confirm?

Is it possible to pass a jQuery variable into a bootbox.js confirm box? Here is the code: bootbox.confirm({ message: 'Are you sure you want to remove [productName]?', callback: function(result) { console.log(result); }, title: "You can also add…
LBF
  • 1,133
  • 2
  • 14
  • 39
3
votes
2 answers

Bootbox alert focus not returning to the input

In my current project I have used bootbox to replace my old ordinary alert and confirm boxes to a trendy one.But the problem is after closing or dismissing the bootbox its focus is not returning to my input. bootbox.alert("Please create a…
user3107066
  • 97
  • 1
  • 10
3
votes
1 answer

bootbox confirm not working when inside a
tag

I've the following code html:
Amjad
  • 1,950
  • 5
  • 26
  • 41
3
votes
2 answers

Bootbox don't defined with RequireJS

I am trying to use Bootbox with RequireJS, but every time this error appears: ReferenceError: bootbox is not defined I configured RequireJS with the dependencies: var bowerLocal = "../../../bower_components/", asstsLocal =…
Tom
  • 641
  • 2
  • 8
  • 21
3
votes
1 answer

How To Remove Autofocus In BootBox

While using Bootstrap 2.3, Bootbox and viewing the result in Google Chrome on Ubuntu you get a less than appealing border around the button because it is auto-focused. I havent found any api hooks to trigger a blur event once the modal is shown. Is…
ezraspectre
  • 3,148
  • 5
  • 23
  • 28
3
votes
1 answer

Javascript events inside bootstrap popup (bootbox) dont work

I´m trying create a bootstrap popup with bootbox modal, inside of form has a input text with masked input, but any events inside of popup don´t work. See here: http://jsfiddle.net/ens1z/UK6x5/5/ The html:

The mask input below WORKS great

3
votes
1 answer

How do I show the remaining seconds until my bootbox closes?

I have my twitter BootBox open like this: bootbox.dialog("{{$steps[0]}}"); after ten Seconds, I close my BootBox like this: window.setTimeout(function(){ bootbox.hideAll(); }, 10000); Is it possible to show the remaining seconds until close…
davidOhara
  • 1,008
  • 5
  • 17
  • 39
3
votes
1 answer

Bootbox.js Confirm choice before submitting form

Hello I have decided to use Bootbox.js as a simple way to incorporate a bootstrap modal so that I can make the user confirm their choice before the form is posted and the changes are made. I am using Laravel, jQuery, Bootstrap and Bootbox.js in my…
2
votes
1 answer

How to prevent closing bootbox while using async function?

What I'm trying to get is if an user gets any validation error, then bootbox will show that "this is required". Till now, I've achieved this. But the main problem is that - it closes the window of boot box if the user clicks "Yes" button. I'm…
Insane DA
  • 323
  • 4
  • 16
2
votes
1 answer

My bootbox.js confirm dialogue requires two clicks to save

In order to display two input fields in a bootbox.confirm box, I've embedded an HTML form in the message field. Everything works fine, but if I enter text in the textarea, the Save button loses focus, and two clicks on the save button are required…
brianfit
  • 1,829
  • 1
  • 19
  • 34
2
votes
1 answer

Keep "this" in bootbox callback functions

I'm trying to keep this variable in the callback: var that = this // type1 bootbox.confirm("This is the default confirm!", function(result){ console.log(that.whatever); }); // type2 bootbox.confirm({ message: "This is a confirm with…
daisy
  • 22,498
  • 29
  • 129
  • 265
2
votes
1 answer

How to use bootbox for Django DeleteView?

I am using Django DeleteView for deleting objects. First, I implemented delete add confirm dialog redirecting another html page. Now, I want to add bootbox pop up. But i don't understand where to add code. Please help models.py class…
Sadman Sobhan
  • 516
  • 10
  • 27
2
votes
1 answer

Change ok cancel option of bootbox to yes & no

Can anyone tell me how I should change the ok & cancel option of the Bootbox to yes & no. function deletelaw(id) { bootbox.confirm('Are you sure you want to delete?', function(result) { if (result) { $("#deletelaw_" + id).hide(); …
Deb
  • 265
  • 1
  • 3
  • 16
# Status