<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV><FONT size=2 face=Arial>Javier, por eso tenia la certeza de que el "echo" 
no era el problema... debe ser el "como estoy definiendo el arreglo con los 
datos" lo que hace que no me funque el autocompletar.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Buenisimo el dato del FIREBUG... lo voy a instalar 
para ver cual es el problema.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Muchas gracias.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Rogelio</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=neiker@gmail.com href="mailto:neiker@gmail.com">Javier Alvarez</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=php-avanzado@pato2.fi.mdp.edu.ar 
  href="mailto:php-avanzado@pato2.fi.mdp.edu.ar">Lista del curso de PHP 
  Avanzado</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 14, 2011 8:14 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Php-avanzado] Input con 
  AUTOCOMPLETE</DIV>
  <DIV><BR></DIV>Hola Rogelio,<BR>No hay diferencia entre echo y print <A 
  href="http://www.baluart.net/articulo/usos-de-print-y-echo">http://www.baluart.net/articulo/usos-de-print-y-echo</A><BR>Para 
  que se te haga mas facil, instalate el plugin "firebug" para firefox.. Con eso 
  podes ver las llamadas ajax, con la peticion y la respuesta. <BR>Ademas tiene 
  varias herramientas mas que facilitan la programación en javascript, los 
  estilos y el html.<BR><BR>Saludos!<BR><BR>On 14/03/11 18:51, Rogelio A. 
  Schwindt wrote: 
  <BLOCKQUOTE cite=mid:22D19B83FA864C4789DD947F858644D7@athlonx2 type="cite">
    <META name=GENERATOR content="MSHTML 8.00.6001.19019">
    <STYLE></STYLE>

    <DIV><FONT size=2 face=Arial>Gracias Matias...</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Estuve haciendo pruebas similares al ejemplo 
    que me pasas pero no me funcionaron.</FONT></DIV>
    <DIV><FONT size=2 face=Arial>Aca no tengo lo que hice porque me quedo en la 
    maquina de la oficina. Mañana los paso a ver si me desaboban... El tema es 
    que hacia&nbsp;casi 2 años que no hacia programacion Php / javascript y es 
    como que el cerebro se atrofia... jaja</FONT></DIV>
    <DIV><FONT size=2 face=Arial>La unica diferencia que le veo es que vos pasas 
    los datos con:</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">print 
    json_encode($arreglo);</FONT><BR></FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>y yo lo hacia con</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV>echo&nbsp;json_encode($arreglo);<BR></DIV>
    <DIV><FONT size=2 face=Arial>Ahi no creo que este el drama... bueno ya lo 
    veremos mañana.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Te agradezco mucho a vos, a Edwin y al otro 
    colega que me escribio el primer mail.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Rogelio Schwindt</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: rgb(0,0,0) 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV style="FONT: 10pt arial; BACKGROUND: rgb(228,228,228)"><B>From:</B> 
      <A title=matigea@gmail.com href="mailto:matigea@gmail.com" 
      moz-do-not-send="true">Matias Gea</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A 
      title=php-avanzado@pato2.fi.mdp.edu.ar 
      href="mailto:php-avanzado@pato2.fi.mdp.edu.ar" 
      moz-do-not-send="true">Lista del curso de PHP Avanzado</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 14, 2011 2:48 
      PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Php-avanzado] Input con 
      AUTOCOMPLETE</DIV>
      <DIV><BR></DIV>Hola, roger.<BR><BR>Esa es la parte más 
      fácil.<BR><BR>Simplemente hacés un arreglo php y lo pasás por la funcion 
      json_encode, así:<BR><BR>&lt;?php<BR><BR>$arreglo = 
      array(<BR>&nbsp;&nbsp;&nbsp; 'hola'=&gt;'mundo',<BR>&nbsp;&nbsp;&nbsp; 
      'como'=&gt;'estan'<BR>);<BR><BR>header('Content-Type: 
      application/json');<BR><BR>print 
      json_encode($arreglo);<BR><BR>?&gt;<BR><BR>Eso te va a dar un objeto JSON 
      que lo entiende cualquier javascript.<BR><BR>Saludos!<BR><BR>
      <DIV class=gmail_quote>El 14 de marzo de 2011 14:19, Rogelio A. Schwindt 
      <SPAN dir=ltr>&lt;<A href="mailto:roger@telefax.com.ar" 
      moz-do-not-send="true">roger@telefax.com.ar</A>&gt;</SPAN> escribió:<BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV bgcolor="#ffffff">
        <DIV><FONT size=2 face=Arial>Edwin, no me pasarias un ejemplo del 
        programa que usas para traer los datos al JSON desde una consulta a 
        MYSQL.</FONT></DIV>
        <DIV>&nbsp;</DIV>
        <DIV><FONT size=2 face=Arial>Gracias.</FONT></DIV>
        <DIV>&nbsp;</DIV><FONT color=#888888>
        <DIV><FONT size=2 face=Arial>Rogelio A. Schwindt<BR>Analista de 
        Sistemas<BR>Area informática<BR>FCA - Balcarce<BR><A 
        href="mailto:agrainfo@mdp.edu.ar" target=_blank 
        moz-do-not-send="true">agrainfo@mdp.edu.ar</A><BR>---------------------------------------------------------</FONT></DIV></FONT>
        <BLOCKQUOTE 
        style="BORDER-LEFT: rgb(0,0,0) 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
          <DIV>
          <DIV class=h5>
          <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
          <DIV 
          style="FONT: 10pt arial; BACKGROUND: rgb(228,228,228)"><B>From:</B> <A 
          title=edwinbeecher@yahoo.com.ar 
          href="mailto:edwinbeecher@yahoo.com.ar" target=_blank 
          moz-do-not-send="true">Edwin Beecher</A> </DIV>
          <DIV style="FONT: 10pt arial"><B>To:</B> <A 
          title=php-avanzado@pato2.fi.mdp.edu.ar 
          href="mailto:php-avanzado@pato2.fi.mdp.edu.ar" target=_blank 
          moz-do-not-send="true">Lista del curso de PHP Avanzado</A> </DIV>
          <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 14, 2011 
          11:38 AM</DIV>
          <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Php-avanzado] Input 
          con AUTOCOMPLETE</DIV>
          <DIV><BR></DIV>
          <TABLE border=0 cellSpacing=0 cellPadding=0>
            <TBODY>
            <TR>
              <TD vAlign=top>Yo utilice flexbox <A 
                href="http://www.fairwaytech.com/flexbox" target=_blank 
                moz-do-not-send="true">http://www.fairwaytech.com/flexbox</A> 
                Edwin </TD></TR></TBODY></TABLE><BR>&nbsp; </DIV></DIV>
          <HR>

          <DIV 
          class=im>_______________________________________________<BR>Php-avanzado 
          mailing list<BR><A href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" 
          target=_blank 
          moz-do-not-send="true">Php-avanzado@pato2.fi.mdp.edu.ar</A><BR><A 
          href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" 
          target=_blank 
          moz-do-not-send="true">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Php-avanzado 
        mailing list<BR><A href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" 
        moz-do-not-send="true">Php-avanzado@pato2.fi.mdp.edu.ar</A><BR><A 
        href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" 
        target=_blank 
        moz-do-not-send="true">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A><BR></BLOCKQUOTE></DIV><BR><BR 
      clear=all><BR>-- <BR>Matias Fernando Gea<BR><A 
      href="mailto:matigea@gmail.com" 
      moz-do-not-send="true">matigea@gmail.com</A><BR><A 
      href="http://www.mfgea.com.ar" 
      moz-do-not-send="true">http://www.mfgea.com.ar</A><BR>
      <P></P>
      <HR>
      _______________________________________________<BR>Php-avanzado mailing 
      list<BR><A class=moz-txt-link-abbreviated 
      href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">Php-avanzado@pato2.fi.mdp.edu.ar</A><BR><A 
      class=moz-txt-link-freetext 
      href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A><BR><BR><BR>__________ 
      Información de ESET Smart Security, versión de la base de firmas de virus 
      5940 (20110309) __________<BR><BR>ESET Smart Security ha comprobado este 
      mensaje.<BR><BR><A class=moz-txt-link-freetext 
      href="http://www.eset.com">http://www.eset.com</A><BR><BR></BLOCKQUOTE><BR><BR>__________ 
    Información de ESET Smart Security, versión de la base de firmas de virus 
    5940 (20110309) __________<BR><BR>ESET Smart Security ha comprobado este 
    mensaje.<BR><BR><A href="http://www.eset.com" 
    moz-do-not-send="true">http://www.eset.com</A><BR><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Php-avanzado mailing list
<A class=moz-txt-link-abbreviated href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">Php-avanzado@pato2.fi.mdp.edu.ar</A>
<A class=moz-txt-link-freetext href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A></PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">-- 
Javier Alejandro Alvarez</PRE><BR><BR>__________ Información de ESET Smart 
  Security, versión de la base de firmas de virus 5940 (20110309) 
  __________<BR><BR>ESET Smart Security ha comprobado este mensaje.<BR><BR><A 
  href="http://www.eset.com">http://www.eset.com</A><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Php-avanzado mailing 
  list<BR>Php-avanzado@pato2.fi.mdp.edu.ar<BR>http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado<BR><BR><BR>__________ 
  Información de ESET Smart Security, versión de la base de firmas de virus 5940 
  (20110309) __________<BR><BR>ESET Smart Security ha comprobado este 
  mensaje.<BR><BR>http://www.eset.com<BR><BR></BLOCKQUOTE><BR>
<BR>
__________ Información de ESET Smart Security, versión de la base de firmas de virus 5940 (20110309) __________<BR>
<BR>
ESET Smart Security ha comprobado este mensaje.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>


</BODY></HTML>