<!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">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Gracias Matias...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&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><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">print 
json_encode($arreglo);</FONT><BR></DIV>
<DIV></FONT><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>y yo lo hacia con</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&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><FONT size=2 face=Arial></FONT>&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><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Rogelio Schwindt</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</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=matigea@gmail.com href="mailto:matigea@gmail.com">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">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><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT 
  size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><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">roger@telefax.com.ar</A>&gt;</SPAN> 
  escribió:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 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><FONT size=2 face=Arial></FONT>&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>agrainfo@mdp.edu.ar</A><BR>---------------------------------------------------------</FONT></DIV></FONT>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV style="FONT: 10pt arial; BACKGROUND: #e4e4e4"><B>From:</B> <A 
      title=edwinbeecher@yahoo.com.ar href="mailto:edwinbeecher@yahoo.com.ar" 
      target=_blank>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>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>http://www.fairwaytech.com/flexbox</A> Edwin 
        </TD></TR></TBODY></TABLE><BR>&nbsp; </DIV></DIV>
      <P></P>
      <HR>

      <DIV class=im>
      <P></P>_______________________________________________<BR>Php-avanzado 
      mailing list<BR><A href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" 
      target=_blank>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>http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A></DIV>
      <P></P></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Php-avanzado 
    mailing list<BR><A 
    href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">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>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">matigea@gmail.com</A><BR><A 
  href="http://www.mfgea.com.ar">http://www.mfgea.com.ar</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>