Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/01/2014, 16:46
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 11 años, 8 meses
Puntos: 10
Respuesta: Problema con estado 1 en loader

Cita:
Iniciado por Alexis88 Ver Mensaje
¿Pero se está ejecutando la petición asíncrona (Ajax)?
Si, y también hay respuesta ok del php.

Código Javascript:
Ver original
  1. GET http://val_telef.php?telefonos=123135435     200 OK   854ms

Tengo otro código y funciona perfectamente, pero no se como adaptarlo a este:

Código Javascript:
Ver original
  1. $.ajax({
  2. data: $("#frm_filtro").serialize()+ordenar,
  3. type: "POST",
  4. dataType: "json",
  5. url: "ajax.php?action=listar",
  6. beforeSend:function(){
  7. $('.carga1').css('display','block');
  8. $('.carga1').html("<img src='imagenes_menu/ajax-loader4.gif' align='center' /><br />Cargando...");
  9.     },  
  10. complete: function() {
  11.  
  12. $(".carga1").show();
  13. $(".carga1").hide();
  14.  
  15.     },
  16.  success: function(data){
  17.  var html_user ='' ;
  18.  if(data.length > 0){
  19.  $.each(data, function(i,item){
  20.  
  21. html_user += '<tr onclick="pulsar1(this, ' + *String.fromCharCode(39) + item.id_aviso + String.fromCharCode(39) *+ ');"     ondblclick="pulsar(this, ' +  String.fromCharCode(39) + item.id_aviso + String.fromCharCode(39) *+ ');" >';
  22. html_user += '<td><input name="demo" type="checkbox" value="' + item.id_aviso + '"/></td>';
  23.  html_user += '<td>'+item.id_aviso+'</td>';
  24.  html_user += '<td>'+item.telefonos+'</td>';
  25.  html_user += '<td>'+item.name+' '+item.apellidos+'</td>';
  26.  html_user += '<td>'+item.calle+'</td>';
  27.  html_user += '<td>'+item.localidad+'</td>';
  28.  html_user += '<td>'+item.aparatos+'</td>';
  29.  html_user += '<td>'+item.marcas+'</td>';
  30.  html_user += '<td>'+item.facturacion+'</td>';
  31.  html_user += '</tr>';
  32.  
  33.  
  34.      });
  35.   }