Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/10/2012, 11:37
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: Imagen animada al llamar al servidor

He puesto esto pero no me funciona.
Hay alguien que me pueda ayudar?

Código Javascript:
Ver original
  1. $('button').click(function(){
  2.         $('#data').ajaxStart(function() {  
  3.         $('this').append("<img src='imagenes_menu/ajax-loader3.gif' />");
  4.         });
  5.         $('#data').ajaxComplete(function() {
  6.         $('this').append('Se competo la carga');       
  7.         });
  8.         $.ajax({
  9.         data: $("#frm_filtro").serialize()+ordenar,
  10.         type: "POST",
  11.         dataType: "json",
  12.         url: "ajax.php?action=listar",
  13.         success: function(data){
  14.         var html_user ='' ;
  15.         if(data.length > 0){
  16.         $.each(data, function(i,item){