Ver Mensaje Individual
  #8 (permalink)  
Antiguo 21/03/2010, 12:48
Avatar de juaniquillo
juaniquillo
Colaborador
 
Fecha de Ingreso: noviembre-2005
Ubicación: San Juan, Puerto Rico
Mensajes: 5.745
Antigüedad: 18 años, 5 meses
Puntos: 281
Respuesta: Ayuda con script autocompletar JQUERY

Necesitas que el Json sea bien formateado según la documentación:

Cita:
Important: As of jQuery 1.4, if the JSON file contains a syntax error, the request will usually fail silently. Avoid frequent hand-editing of JSON data for this reason. JSON is a data-interchange format with syntax rules that are stricter than those of JavaScript's object literal notation. For example, all strings represented in JSON, whether they are properties or values, must be enclosed in double-quotes. For details on the JSON format, see http://json.org/.
Osea, que tanto las propiedades como los valores deben tener comillas dobles. Teniendo en cuenta tu PHP sería algo así:

Código PHP:
Ver original
  1. $return .= '"query": "'.$busqueda.'",';
__________________
Por fin.. tengo algo parecido a un blog
Y por lo visto ya estoy escribiendo...