bootstrap-modal

bootstrap how to detect which button closed a modal dialog on 'hidden_modal_bs' event func?

时光毁灭记忆、已成空白 提交于 2019-12-03 12:27:13
I have a welcome type bootstrap-modal on homepage that shows three buttons, each one of them should load different pages Here it is a relevant excerpt of the HTML <div class="modal fade" id="welcomeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" > <div class="modal-dialog" > <div class="modal-content" ;"> <div class="modal-header"> <h3 class="modal-title" id="ModalLabel">Welcome to Here</h3> </div> <div class="modal-body" style='height: 90.5%;'> <span style="display:td;text-align;center;">Blah Blah BLah</span> </div> <div class="modal-footer"> <div class=

Scrolling issues with multiple bootstrap modals

柔情痞子 提交于 2019-12-03 05:17:10
I have a page with a modal with a lot of info so you need to scroll. This modal contains a link to a second modal. When I open modal 1 click on link to open modal 2 (modal 1 stays in background) and then close modal 2 so that I am back on modal 1 modal 1 looses scrolling (there is still a scroll bar but it doesn't do anything). Instead the modal stays in the position it was at the time of opening modal 2. I played around with closing the background modal with js first (but that messes up scrolling on the second modal). It appears that every time I try to open/close more than one modal I always

Angular UI Bootstrap modal - use custom modal window

陌路散爱 提交于 2019-12-02 19:37:42
问题 As given in the link http://angular-ui.github.io/bootstrap ( select modal from Directive drop down on top), there is a parameter called windowTemplateUrl which is used to over ride the modal content. So, in case we are using this, what to give in templateUrl or template, as one of these is required for calling the open function of modal. For e.g. the code is given below. $scope.open = function(){ var modalInstance = $modal.open({ windowTemplateUrl : '/client/content.html' }) } If I run the

Time picker going behind the twitter bootstrap modal

一世执手 提交于 2019-12-02 19:29:26
问题 I am using bootstrap date-time picker in my Java Spring MVC web application to select date and time separately. I have included the CSS and scripts required. my HTML code would be as follows: <div class="form-group"> <label class="col-lg-2 control-label">Start</label> <div class="col-lg-10"> <div class="row"> <div class="col-sm-6"> <!--Bootstrap Datepicker : Component--> <div id="dripCampaignStartDate"> <label class="control-label" for="startDate">Start Date</label> <div class="input-group

Use modal in a modal after closing the second modal, the scrolling refers to the body

三世轮回 提交于 2019-12-02 18:03:06
问题 I am a new front end developer and I am having problem doing my project. I used modal in a modal and it works. My first modal is a long modal which needs to be scrolled to see the entire content. <a data-toggle="modal" data-target="#modalmessage1"><button class="btn btn-gold tdc-width-100 tdc-mt-10" ><img class="img-button-icon" src="<?php echo base_url();?>img/email-white.png">SEND MESSAGE</button></a> The problem is: When the second modal is closed. the scroll refers to the body. I can not

Bootstrap modal and passing value

只愿长相守 提交于 2019-12-02 13:41:58
When I click edit, 'id' should pass to own page and modal should pop up. But it doesn't work. Please help me PHP and Bootstrap <tr> <td><?php echo $row['name']; ?></td> <td><a data-toggle="modal" data-target="#myModal" href='?id=<?php echo $row['id']; ?>'>Edit</a> </td> </tr> Modal <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog modal-lg"> ------ ----- ----- </div> </div> Nana Partykar Create a class Edit in <a></a> tag. Use this class to call modal. And, add data-Id="<?echo $row['id'];?>" <tr> <td><?php echo $row['name']; ?></td> <td> <a class='Edit' data-toggle=

Angular UI Bootstrap modal - use custom modal window

落花浮王杯 提交于 2019-12-02 08:53:16
As given in the link http://angular-ui.github.io/bootstrap ( select modal from Directive drop down on top), there is a parameter called windowTemplateUrl which is used to over ride the modal content. So, in case we are using this, what to give in templateUrl or template, as one of these is required for calling the open function of modal. For e.g. the code is given below. $scope.open = function(){ var modalInstance = $modal.open({ windowTemplateUrl : '/client/content.html' }) } If I run the code as above, it gives error that templateUrl or template is required. So, how do I use

Use modal in a modal after closing the second modal, the scrolling refers to the body

血红的双手。 提交于 2019-12-02 08:27:24
I am a new front end developer and I am having problem doing my project. I used modal in a modal and it works. My first modal is a long modal which needs to be scrolled to see the entire content. <a data-toggle="modal" data-target="#modalmessage1"><button class="btn btn-gold tdc-width-100 tdc-mt-10" ><img class="img-button-icon" src="<?php echo base_url();?>img/email-white.png">SEND MESSAGE</button></a> The problem is: When the second modal is closed. the scroll refers to the body. I can not scroll the first modal to see the whole content. Question: How can I enable the scroll of the first

Bootstrap 4.1.3 modal body retains jquery returned data. How to clear cache for each new request?

馋奶兔 提交于 2019-12-02 07:52:45
问题 I have a form that submits data via jquery which is then shown via bootstrap modal. However, the problem is that, if I quickly try to give new values to the form then the modal body sometimes doesn't show freshly calculated values but shows the old cached values. How can I destroy the modal cache data in bootstrap 4 ? I have tried various bootstrap3 tips but it just wouldn't work and I still see old cached data intermittantly. Here is what I tried. $('#modalForm').on('hidden.bs.modal',

Bootstrap modal header and footer not rendered

一笑奈何 提交于 2019-12-02 04:29:05
问题 I am displaying an edit form in a bootstrap modal. Using asp mvc5, I am returning a partial view into a bootstrap modal window. The form shows up, fills with data and posts just fine. Only issue is the header and footer do not display. The code shows up in "view page source" but not in the elements tab of the web dev inspector (chrome). I plan to have multiple different modals on this one page, so I am using a placeholder in the _layout page for the modal, then passing in different partial