Advertisement
corovino

Untitled

Nov 9th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $.ajax({
  2.                         beforeSend: function(){
  3.                         $("#load").html('<p>cargando<p>');
  4.                         },
  5.                         url:'/controlpublicacion/consulta_prueba.php',
  6.                         type:'POST',
  7.                         dataType:'json',
  8.                         data:{
  9.                                 consulta:"conultar",
  10.                                 id:$(this).attr('ide')
  11.                               },
  12.                         //'consulta=conultar&id='+$(this).attr('ide')
  13.                         success: function(data){
  14.                             var button = $('.btn_home');
  15.                             var prueba = '<td></td><td><img src="/Marcadores/'+marcadores[data.tipo_locacion]+'"></td><td id="nombre_aloja" >'+data.nombre_aloja+'</td><td>'+data.ubicacion_aloja+'</td><td>'+data.persona_cont+'</td><td>'+data.cargo+'</td><td>'+data.tel_per_cont+'</td><td>'+data.tel_aloja+'</td><td>'+data.email+'</td>';
  16.                              $('#loader ').click( function(){
  17.                                       console.log('me tocaste grosero');// identificando td especifico tabla modal
  18.                                 });
  19.  
  20.                             if(data.verificado == "1"){
  21.                          
  22.                                        
  23.                                        
  24.                                         prueba=prueba+'<td><span  id="veri_estado" class="'+verifi[data.verificado]+'"></span></td>';
  25.                               }else{
  26.                                         prueba=prueba+'<td><span id="veri_estado" class="'+verifi[data.verificado]+'"></span></td>';
  27.                             }
  28.  
  29.                             $("#loader").html(prueba);
  30.                             $('#identificado').val(data.id);
  31.                         },
  32.                        error: function(){
  33.                             alert('Error general del sistema, regrese mas tarde ');
  34.                         }
  35.                      
  36.                   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement