Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/02/2013, 10:48
Montes28
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 13 años, 7 meses
Puntos: 6
Respuesta: problema con ajax

asi lo solucione,

Código Javascript:
Ver original
  1. .done(function(resultado) {
  2.     console.log(resultado);
  3.    
  4.     });

Código Javascript:
Ver original
  1. <script>
  2.     $(document).ready(function() {
  3.     $('.edit-address').click(function() {
  4.     var valor= $(this).attr('data-pk');
  5.     //console.log(valor);
  6.     $.ajax({
  7.     url:'consulta.php',
  8.     type:'get',
  9.     data:{
  10.     valor:valor,
  11.     }
  12.     }).done(function(resultado) {
  13.     console.log(resultado);
  14.     $('.edit-address').editable('setValue', resultado);
  15.     });
  16.     });
  17.     $('.edit-address').editable({
  18.     url: 'multiples.php',
  19.     title: 'Enter city, street and building #',
  20.     });
  21.     });
  22.  
  23. </script>