Ver Mensaje Individual
  #16 (permalink)  
Antiguo 31/01/2013, 15:50
Avatar de Carlangueitor
Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: X-editable leer valores desde base de datos

La respuesta es formato json, eso está bien, pero puedes hacer solo peticiones POST o GET (o en el caso puede ser DELETE, PUT, etc), mira la documentación de jQuery:

Cita:
The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.
Prueba agregar también el callback para el error:
Código Javascript:
Ver original
  1. <script>
  2. $(document).ready(function() {
  3.  
  4. $.ajax({
  5.    url: "prueba.php",
  6.    dataType: 'json',
  7.    sucess: function(resultado){
  8.         $('.address').editable({
  9.             url: 'multiples.php',
  10.             title: 'Enter city, street and building #',
  11.             value:resultado
  12.         });
  13.    },
  14.    error: function(error){
  15.        console.log(error);
  16.     }
  17. }),
  18. });
  19. </script>


Saludos
__________________
Grupo Telegram Docker en Español