• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window Modal does not work

#7
(06-09-2019, 08:22 AM)PaulD Wrote: "But it does not work." What is happening, is the window not showing or is the window showing without the content?

I have had problems with modal windows in the past with z-index problems and with conflicts with other parts of my css (off-canvas elements overriding the normal modal operations). If you hard code a modal onto the page you are working on, does it show properly?

Does not run. Nothing appears on the screen. 

SPA, with side menu. When I click on Students for example, the student listing appears. And when I click on the edit or new, I open a new page. On this page I have 2 buttons to record. And the idea was to have this MODAL WINDOW come up. And what I did to do this test that you suggested: when I click on the "DISCIPLINES" menu link instead of listing data from the database, I called this modal window.
The window is not showing.
Code:
<div class="modal fade" id="myModal">
     <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
           <div class="modal-content">
               <div class="modal-header">
                   <h4 class="modal-title">My Modal</h4>
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">×</span>
                   </button>
               </div>
               <div class="modal-body">
                   ...
               </div>
               <div class="modal-footer">
                   <button type="button" class="btn btn-secondary mx-auto" data-dismiss="modal">Close</button>
               </div>
           </div>
     </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
  $('#meuModal').modal('show');
});
</script>


Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
Window Modal does not work - by RRIOS - 06-08-2019, 10:53 AM
RE: Window Modal does not work - by php_rocs - 06-08-2019, 08:42 PM
RE: Window Modal does not work - by RRIOS - 06-09-2019, 06:53 AM
RE: Window Modal does not work - by InsiteFX - 06-09-2019, 03:05 AM
RE: Window Modal does not work - by RRIOS - 06-09-2019, 06:52 AM
RE: Window Modal does not work - by PaulD - 06-09-2019, 08:22 AM
RE: Window Modal does not work - by RRIOS - 06-10-2019, 06:29 AM
RE: Window Modal does not work - by php_rocs - 06-10-2019, 08:23 AM
RE: Window Modal does not work - by RRIOS - 06-10-2019, 02:10 PM
RE: Window Modal does not work - by hamanalda - 06-10-2019, 06:36 PM
RE: Window Modal does not work - by RRIOS - 06-11-2019, 07:25 AM
RE: Window Modal does not work - by hamanalda - 06-11-2019, 07:48 PM
RE: Window Modal does not work - by RRIOS - 06-11-2019, 08:00 AM
RE: Window Modal does not work - by RRIOS - 06-11-2019, 08:14 AM
RE: Window Modal does not work - by InsiteFX - 06-16-2019, 04:45 AM
RE: Window Modal does not work - by Piotr - 06-16-2019, 07:43 AM
RE: Window Modal does not work - by InsiteFX - 06-17-2019, 08:35 AM
RE: Window Modal does not work - by RRIOS - 06-17-2019, 12:50 PM
RE: Window Modal does not work - by johnmark10 - 10-25-2019, 11:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.