bootstrap-modal

Open-Close Modal issue in Internet Explorer

。_饼干妹妹 提交于 2019-12-08 09:45:56
问题 I have a modal window (using bootstrap), with a close button. The modal window opens and closes fine in most browsers. However, in internet explorer, there is a problem. We can open the modal window fine, and close it fine ... but if we try to open it again, it wont. Most of the javascript functionality is in bootstrap. Below is the html for the open button [I believe data-toggle="modal" and data-target="#exampleModal" are the key to opening the window]... <a href="javascript:void(0)" id=

On Bootstrap modal confirm button click ,create and download file jquery or knockout js

▼魔方 西西 提交于 2019-12-08 09:39:49
问题 I have a bootstrap modal( bootbox ), on which confirm action, i want to create a file which contains some numbers and download the file as a text file. I have already referred Create a file in memory for user to download, not through server but its not helpful in my case. Here is the code : bootbox.confirm("Item not found! Do you want to download the text file?", (yes) => { var items = response.itemNumbers; this.href = "data:text/plain;charset=UTF-8," + encodeURIComponent(items); }); I have

bootstrap datetimepicker does not work in a bootstrap modal

妖精的绣舞 提交于 2019-12-08 09:01:45
问题 I need to use bootstrap datetimepicker in a bootstrap modal. I've successfully used it in a normal web page. The bootstrap calender won't open in the modal. Here is my dynamically generated html code. '<div class="col-xs-12">'+ '<div class="col-xs-4">'+ '<div class="form-group">'+ '<label for="editStartTime">Start Time </label>'+ '<div class="input-group date" id="editStartTime">'+ '<input type="text" class="form-control" value="'+startTime+'"/>'+ '<span class="input-group-addon">'+ '<span

AngularJS: External Modal Templates

戏子无情 提交于 2019-12-08 07:26:27
问题 I read Agularjs - include external html file into modals, but it didn't include much code or explanation and just pointed to docs that I've read. So, I will go into more detail. I have a main html file for a SPA (Single Page Application). I want to use modals for more detailed views. <html> <head> <meta charset='utf-8'> <script src="js/angular.js"></script> <script src="js/angular-ui-bootstrap-modal.js"></script> <script src="js/app.js"></script> <link rel="stylesheet" href="css/bootstrap.css

Fullcalendar: Bootstrap Modal Box not displaying elements correctly

≡放荡痞女 提交于 2019-12-08 06:11:06
问题 A Full calendar Script in one of my project in which i added a Bootstrap modal. I am making it to popup on submit of a Button in my page.But the elements inside the modal are not visible clearly. where am i making the mistake?. I do have a datepicker in my code, but it is also not displayed with proper 'prev','next' buttons. I have added a sample pic too.Kindly help me.. The following is my code:- <div class="modal fade in" id="modal_calendar" tabindex="-1" role="dialog" aria-hidden="false"

iframe form inside bootstrap modal jump on keypress on iPhone

ぃ、小莉子 提交于 2019-12-08 05:43:57
问题 I have embedded an iframe form inside bootstrap modal. When I keypress form input on iPhone ( both Safari and Chrome ), the page jumps and goes up. I have already disabled focus zoom by using meta viewport and font size 16px. If I don't disable zoom, the page will jump on input focus. Bootstrap versin 3.3.7 jQuery version 3.1.1 iPhone 6 iOS version 10.2.1 The attached snippet will work because it is not in iframe. It happens when the form is in iframe. <!DOCTYPE html> <html lang="en"> <head>

Pass variable to UI-bootstrap modal without using $scope

♀尐吖头ヾ 提交于 2019-12-08 05:28:37
问题 Since I am a beginner using AngularJS the $scope approach to pass data between different controllers and (in my case) a modal drives me crazy. Due to that reason, I googled around the web and found an interesting blogpost about passing data to a UI-bootstrap modal without using $scope . I had a deeper look at this blogpost and the delivered plunk which works pretty nice and started to adopt this to my own needs. What I want to achieve is to open a modal delivering an text input in which the

Bind the closing of a first modal to the opening of a second modal

陌路散爱 提交于 2019-12-08 05:10:02
问题 So when the first modal (this.$avatarModal) is closed, I would like a second modal (this.$modaldata) to open.: The following sequence works however there are issues with the scrolling of the second modal not functioning: this.$avatarModal.modal('hide'); this.$modaldata.modal('show'); As a solution to the scrolling issue, the dev on github are recommending to bind the event. However the following code, using .on does not work (the second modal does not open. this.$avatarModal.modal('hide');

AngularJS: External Modal Templates

a 夏天 提交于 2019-12-08 05:03:30
I read Agularjs - include external html file into modals , but it didn't include much code or explanation and just pointed to docs that I've read. So, I will go into more detail. I have a main html file for a SPA (Single Page Application). I want to use modals for more detailed views. <html> <head> <meta charset='utf-8'> <script src="js/angular.js"></script> <script src="js/angular-ui-bootstrap-modal.js"></script> <script src="js/app.js"></script> <link rel="stylesheet" href="css/bootstrap.css"> </head> <body ng-app="MyApp" ng-controller="MyCtrl"> <button class="btn" ng-click="open()">Open

create a slideshow of images inside bootstrap modal dynamically using PHP

核能气质少年 提交于 2019-12-08 03:04:31
问题 <div class="modal-body"> <?php $id=$_GET['id']; $qry="select rel_movies from released_movies where rel_id='$id' "; $qryr=$con->query($qry); while($rr=$qryr->fetch_assoc()){ $film=$rr['rel_movies']; $q="select * from gallery where category='$film'"; $qr=$con->query($q); while($r=$qr->fetch_assoc()){ ?> <ol class="carousel-indicators"> <li data-target="#lightbox" data-slide-to="0" class="active"></li> <li data-target="#lightbox" data-slide-to="1"></li> <li data-target="#lightbox" data-slide-to=