Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/11/2008, 11:01
Avatar de vITTY
vITTY
 
Fecha de Ingreso: enero-2006
Mensajes: 139
Antigüedad: 18 años, 3 meses
Puntos: 1
De prototype a jquery

Alguien me puede ayudar a convertir esta funcion prototype a jquery.

Código javascript:
Ver original
  1. function ActualizaProvincia(id, tabla, elemento){
  2.    
  3.     new Ajax.Request("consulta.php",{
  4.     method:"post",
  5.     parameter:{idPais:id, tabla:tabla},
  6.     onCreate: function() {
  7.         $(elemento).innerHTML="<img src=/images/loading.gif/" />";
  8.     },
  9.     onSuccess: function(ok) {
  10.             $(elemento).innerHTML=ok.responseText;
  11.         }  
  12.     });
  13. }


Última edición por vITTY; 02/12/2008 a las 16:37