Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script >
- $(document).ready(function(){
- //nombre_inci es un select, en donde --Todas las Causas-- es un valor estatico
- //el resto de valores se trae de la BD
- //Buscar es un boton
- if ($("#Buscar").click && nombre_inci==="--Todas las Causas--"){
- (function(){
- var parametros = {
- "fecha_rin" : $("#fecha_rin").val(),
- "fecha2_rin" : $("#fecha2_rin").val(),
- "operacion":"mostrar_informe"
- };
- $.ajax({
- data: parametros,
- url: 'controlador_incidentes.php',
- type: 'post',
- async:false,
- beforeSend: function () {
- $("#resultado").html("Procesando, espere por favor...");
- },
- success: function (response) {
- //alert(response);
- $("#datos").html(response);
- }
- });
- });}
- //--------------------------------------------------------
- $("#tabla tbody").on('click','.detalles',function(){
- /* alert($(this).attr("id_rin"));
- var id_rin=$(this).attr("id_rin");
- location.href="detalle_incidentes.php?nro="+ id_rin +"";*/
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement