"Modal Promise"
Bootstrap 3.0.0 Snippet by AlejandroLeonor

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <!-- Loading modal, displayed while an ajax request is in progress. --> <div id="loading-modal" class="modal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-sm" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Loading Content</h4> </div> <div class="modal-body"> <em>Please wait....</em> </div> </div> </div> </div> <!-- Form modal, displays a form to initiate an ajax request. --> <div id="alpha-modal" class="modal fade" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> × </button> <h4 class="modal-title">Do Something Awesome</h4> </div> <div class="modal-body"> <form id="alpha-form"> <!-- Form contents go here. --> </form> </div> <div class="modal-footer"> <button class="btn btn-default" data-dismiss="modal"> Cancel </button> <button id="alpha-button" class="btn btn-success" type="submit"> Start </button> </div> </div> </div> </div> </div> </div>

Related: See More

Questions / Comments: