Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/12/2015, 03:13
javierconesa23
 
Fecha de Ingreso: febrero-2011
Ubicación: Barcelona
Mensajes: 195
Antigüedad: 13 años, 2 meses
Puntos: 1
Respuesta: submit no funciona dentro de un modal

sigue sin funcionar , probe las dos respuestas . posteo el codigo de donde se lanza el modal a ver si veis algo raro , yo desde luego que no veo nada y ya no se que hacer

Código HTML:
Ver original
  1. <!-- Modal -->
  2.         <div id="myModal" class="modal fade" role="dialog">
  3.             <div class="modal-dialog">
  4.          
  5.             <!-- Modal content-->
  6.             <div class="modal-content">
  7.               <div class="modal-header">
  8.              
  9.                 <button type="button" class="close" data-dismiss="modal">&times;</button>
  10.                 <h4 class="modal-title">Su Perfil de  Usuario</h4>
  11.               </div>
  12.               <div class="modal-body" id="mbody2">
  13.               </div>
  14.              
  15.               </div>
  16.             </div>
  17.          
  18.           </div>
  19.         </div>
  20.  
  21.        
  22.         <div id="myModal2" class="modal fade" role="dialog">
  23.           <div class="modal-dialog modal-lg" role="document">
  24.          <!-- Modal content-->
  25.                 <div class="modal-content">  
  26.                     <div class="form-group">
  27.                         <div class="modal-body" width="800px" id="mbody">
  28.              
  29.              
  30.              
  31.                         </div> 
  32.                     </div>
  33.                 </div>  
  34.             </div>
  35.         </div>     
  36.  
  37.  
  38.  
  39.  
  40. <div class="page-container sidebar-collapsed"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
  41.        
  42.         <div class="sidebar-menu">
  43.            
  44.                
  45.             <header class="logo-env">
  46.                
  47.                 <!-- logo -->
  48.                 <div class="logo">
  49.                     <a href="#">   
  50.                         <img src="assets/images/EUROPORTS.png" width="80%" alt="80%" />
  51.                     </a>
  52.                 </div>
  53.                
  54.                
  55.                             <!-- logo collapse icon -->
  56.                 <div class="sidebar-collapse">
  57.                     <a href="#" class="sidebar-collapse-icon with-animation"><!-- add class "with-animation" if you want sidebar to have animation during expanding/collapsing transition -->
  58.                     <i class="entypo-menu"></i>
  59.                     </a>
  60.                            
  61.                 </div>
  62.                
  63.                                        
  64.                
  65.                 <!-- open/close menu icon (do not remove if you want to enable menu on mobile devices) -->
  66.                 <div class="sidebar-mobile-menu visible-xs">
  67.                     <a href="#" class="with-animation"><!-- add class "with-animation" to support animation -->
  68.                         <i class="entypo-menu"></i>
  69.                     </a>
  70.                 </div>
  71.                
  72.             </header>
  73.                    
  74.            
  75.            
  76.                    
  77.            
  78.                    
  79.             <ul id="main-menu" class="">
  80.             <a class="btn btn-primary" id="BOTONPARAABRIRMODAL">
  81.                     <i class="entypo-plus" data-toggle="modal" data-target="#myModal2">Autorizar Matrículas</i>
  82.                     </a>
  83.                 <!-- add class "multiple-expanded" to allow multiple submenus to open -->
  84.                 <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
  85.                 <!-- Search Bar -->
  86.                
  87.                 <li class="opened active">
  88.                     <a href="#">
  89.                         <i class="entypo-window"></i>
  90.                         <span>Autorizaciones</span>
  91.                        
  92.                     </a>
  93.                    
  94.                    
  95.                 </li>
  96.             </ul>
  97.                    
  98.         </div> 
  99.         <div class="main-content">
  100.            
  101.     <div class="row">
  102.  
  103.        
  104.         <!-- Profile Info and Notifications -->
  105.         <div class="col-md-6 col-sm-8 clearfix">
  106.            
  107.             <ul class="user-info pull-left pull-none-xsm">
  108.            
  109.                             <!-- Profile Info -->
  110.                 <li class="profile-info dropdown"><!-- add class "pull-right" if you want to place this from right -->
  111.                    
  112.                     <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  113.                         <?php echo '<img src="assets/images/'.$cliente.'.png" alt="" class="img-circle" width="44" />';?>
  114. <?php  echo  "Bienvenid@ "   .$_SESSION['user'];?>
  115.                     </a>
  116.  
  117.                    
  118.             </li>      
  119.                        
  120.                        
  121.             <li class="notifications dropdown">
  122.                        
  123.                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
  124.                         <i class="entypo-user" data-toggle="modal" data-target="#myModal" id="BOTONPARAABRIRMODAL2"></i>
  125.                         </a>
  126.                                
  127.                            
  128.             </li>
  129.  
  130.  
  131.                    
  132.            
  133.        
  134.         </ul>
  135.                
  136.        
  137.  
  138.  
  139. <li class="external">
  140.     <a href="mailbox.html">All Messages</a>
  141. </li>               </ul>
  142.                
  143.             </li>
  144.            
  145.            
  146.     <script>
  147. $(function () {
  148. $("#datepicker").datepicker();
  149. });
  150. </head>
  151. Fecha:
  152. <div id="datepicker"></div>
  153. </body>
  154. </html>
  155.  
  156.  
  157. <li class="external">
  158.     <a href="#">See all tasks</a>
  159. </li>               </ul>
  160.                
  161.             </li>
  162.        
  163.         </ul>
  164.    
  165.     </div>
  166.  
  167.    
  168.    
  169.  <!-- <script type="text/javascript">
  170. var responsiveHelper;
  171. var breakpointDefinition = {
  172.    tablet: 1024,
  173.    phone : 480
  174. };
  175. var tableContainer;
  176.  
  177.     jQuery(document).ready(function($)
  178.     {
  179.         tableContainer = $("#table-1");
  180.        
  181.         tableContainer.dataTable({
  182.             "sPaginationType": "bootstrap",
  183.             "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
  184.             "bStateSave": true,
  185.            
  186.  
  187.             // Responsive Settings
  188.             bAutoWidth     : false,
  189.             fnPreDrawCallback: function () {
  190.                 // Initialize the responsive datatables helper once.
  191.                 if (!responsiveHelper) {
  192.                     responsiveHelper = new ResponsiveDatatablesHelper(tableContainer, breakpointDefinition);
  193.                 }
  194.             },
  195.             fnRowCallback  : function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
  196.                 responsiveHelper.createExpandIcon(nRow);
  197.             },
  198.             fnDrawCallback : function (oSettings) {
  199.                 responsiveHelper.respond();
  200.             }
  201.         });
  202.        
  203.         $(".dataTables_wrapper select").select2({
  204.             minimumResultsForSearch: -1
  205.         });
  206.     });
  207. </script>//-->
  208.  
  209. <br />
  210.  
  211.    
  212. </h2>
  213.  
  214.  
  215.  
  216.  
  217.  
  218. <h4><center>Autorizaciones pendientes de carga</h4>
  219.  
  220.  
  221.  
  222. <?php require_once("autht.php");?>
  223.  
  224.  
  225. <script type="text/javascript">
  226. $("#BOTONPARAABRIRMODAL").click(function(){
  227. $.ajax({
  228.   method: "GET", //Elige get o post
  229.   url: "contratos8.php",
  230.  
  231. })
  232.   .done(function( msg ) {
  233.    $("#mbody").html(msg);
  234.  $("#myModal2").show();
  235.   });
  236.  });
  237.  </script>
  238.  
  239.  <script type="text/javascript">
  240. $("#BOTONPARAABRIRMODAL2").click(function(){
  241. $.ajax({
  242.   method: "GET", //Elige get o post
  243.   url: "mail.php",
  244.  
  245. })
  246.   .done(function( msg ) {
  247.    $("#mbody2").html(msg);
  248.  $("#myModal").show();
  249.   });
  250.  });
  251.  </script>
  252.  
  253.  
  254. <script type="text/javascript">
  255. jQuery(window).load(function()
  256. {
  257.     var $ = jQuery;
  258.    
  259.     $("#table-2").dataTable({
  260.         "sPaginationType": "bootstrap",
  261.         "sDom": "t<'row'<'col-xs-6 col-left'i><'col-xs-6 col-right'p>>",
  262.         "bStateSave": false,
  263.         "iDisplayLength": 8,
  264.         "aoColumns": [
  265.             { "bSortable": false },
  266.             null,
  267.             null,
  268.             null,
  269.             null
  270.         ]
  271.     });
  272.    
  273.     $(".dataTables_wrapper select").select2({
  274.         minimumResultsForSearch: -1
  275.     });
  276.    
  277.     // Highlighted rows
  278.     $("#table-2 tbody input[type=checkbox]").each(function(i, el)
  279.     {
  280.         var $this = $(el),
  281.             $p = $this.closest('tr');
  282.        
  283.         $(el).on('change', function()
  284.         {
  285.             var is_checked = $this.is(':checked');
  286.            
  287.             $p[is_checked ? 'addClass' : 'removeClass']('highlight');
  288.         });
  289.     });
  290.    
  291.     // Replace Checboxes
  292.     $(".pagination a").click(function(ev)
  293.     {
  294.         replaceCheckboxes();
  295.     });
  296. });
  297.    
  298. // Sample Function to add new row
  299. var giCount = 1;
  300.  
  301. function fnClickAddRow()
  302. {
  303.     $('#table-2').dataTable().fnAddData(['<div class="checkbox checkbox-replace"><input type="checkbox" /></div>', giCount+".2", giCount+".3", giCount+".4", giCount+".5" ]);
  304.    
  305.     replaceCheckboxes(); // because there is checkbox, replace it
  306.    
  307.     giCount++;
  308. }
  309.  
  310.  
  311.  
  312. <br />
  313. <br />
  314.  
  315.  
  316. <h3>&nbsp;</h3>
  317. <br />
  318. <script type="text/javascript">
  319.     jQuery(document).ready(function($)
  320.     {
  321.         var table = $("#table-3").dataTable({
  322.             "sPaginationType": "bootstrap",
  323.             "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
  324.             "bStateSave": true
  325.         });
  326.        
  327.         table.columnFilter({
  328.             "sPlaceHolder" : "head:after"
  329.         });
  330.     });
  331.  
  332. <br />
  333.  
  334.  
  335. <h3>&nbsp;</h3>
  336. <br />
  337. <script type="text/javascript">
  338.     jQuery(document).ready(function($)
  339.     {
  340.         var table = $("#table-4").dataTable({
  341.             "sPaginationType": "bootstrap",
  342.             "sDom": "<'row'<'col-xs-6 col-left'l><'col-xs-6 col-right'<'export-data'T>f>r>t<'row'<'col-xs-6 col-left'i><'col-xs-6 col-right'p>>",
  343.             "oTableTools": {
  344.             },
  345.            
  346.         });
  347.     });
  348.        
  349.  
  350. <br /><!-- Footer --></div>
  351.  
  352.    
  353. <div id="chat" class="fixed" data-current-user="Art Ramadani" data-order-by-status="1" data-max-chat-history="25">
  354.    
  355.     <div class="chat-inner">
  356.    
  357.        
  358.         <h2 class="chat-header">
  359.             <a href="#" class="chat-close" data-animate="1"><i class="entypo-cancel"></i></a>
  360.            
  361.             <i class="entypo-users"></i>
  362.             Chat
  363.             <span class="badge badge-success is-hidden">0</span>
  364.         </h2>