Foros del Web » Programando para Internet » Jquery »

datatables check y radio button

Estas en el tema de datatables check y radio button en el foro de Jquery en Foros del Web. hola recién empiezo con lo que son los databases con jquery pero no eh podido poner un radio o un check dentro del grid espero ...
  #1 (permalink)  
Antiguo 07/01/2014, 21:02
 
Fecha de Ingreso: enero-2013
Mensajes: 68
Antigüedad: 11 años, 2 meses
Puntos: 0
Pregunta datatables check y radio button

hola recién empiezo con lo que son los databases con jquery pero no eh podido poner un radio o un check dentro del grid espero me puedan ayudar yauqe necesitomandar el valor de un renglón para después tomarlo con un get en otra pantalla y hacer una consulta en la otra pantalla pero no lo eh logrado este esmi código HTML dnd mando llamar el jquery

Código HTML:
Ver original
  1. <!doctype html>
  2. <html lang="es">
  3.     <meta charset="UTF-8">
  4.    
  5.     <link href="css/style.css" type="text/css" rel="stylesheet"/>
  6.     <link href="css/jquery-ui.css" type="text/css" rel="stylesheet"/>
  7.     <link href="css/datatables.css" type="text/css" rel="stylesheet"/>
  8.    
  9.     <script src="js/jquery.js"></script>
  10.     <script src="js/jquery-ui.js"></script>
  11.     <script src="js/datatables.js"></script>
  12.     <script src="js/dataBoletin.js"></script>
  13.     <script src="js/idioma.js"></script>
  14.     <script>
  15.  
  16.  
  17.     </script>
  18.  
  19.  
  20.  
  21.  
  22. </head>
  23.     <form action ="respuesta.php" method="post">
  24.     <header>
  25.         <h1>sistema de boletin</h1>
  26.     </header>
  27.     <section>
  28.         <table>
  29.             <thead>
  30.                
  31.                 <input type ="checkbox" name="chk_name" value="id_campo">
  32.                 <input type="submit" >
  33.                
  34.                 <tr>
  35.                     <th>dependencia</th>
  36.                     <th>responsable</th>
  37.                     <th>contacto</th>
  38.                     <th>estado</th>
  39.                     <th>tipo</th>                                    
  40.             </thead>
  41.         </table>
  42.     </section>
  43.     <footer></footer>
  44.     </form>
  45. </body>
  46. </html>

y este es mi código js

Código Javascript:
Ver original
  1. var oTable;
  2. var giRedraw = false;
  3.  
  4. $(document).ready(function() {
  5.    
  6.     $.ajax({
  7.             url: './include/boletinConsulta.php',
  8.             type: 'post',
  9.             data: { tag: 'getData'},
  10.             dataType: 'json',
  11.             success: function (data) {
  12.                 if (data.success) {
  13.                     $.each(data, function (index, record) {
  14.                         if ($.isNumeric(index)) {
  15.                             var row = $("<tr />");
  16.                             $("<td />").text(record.dependencia).appendTo(row);
  17.                             $("<td />").text(record.responsable).appendTo(row);
  18.                             $("<td />").text(record.contacto).appendTo(row);
  19.                             $("<td />").text(record.estado).appendTo(row);
  20.                             $("<td />").text(record.tipo).appendTo(row);
  21.  
  22.                             row.appendTo("table");
  23.                         }
  24.                     })
  25.                 }
  26.  
  27.                 $('table').dataTable({
  28.                     "bJQueryUI": true,
  29.                     "sPaginationType": "full_numbers",
  30.                      
  31.                                    
  32.                 })
  33.             }
  34.         });
  35.  
  36.  
  37.  
  38.  
  39. })

si trae los datos de la base de datos y todo pero no logro lo demás


espero me ayuden

Etiquetas: datatables, javascript
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:28.