Foros de discusión

problem: jquery + php autocomplete

alberto micheli, modificado hace 14 años.

problem: jquery + php autocomplete

New Member Mensaje: 1 Fecha de incorporación: 19/05/09 Mensajes recientes
I'm writing a portlet in php.
I'd like to use autocomplete in a form with jquery, using this tutorial: http://nodstrum.com/2007/09/19/autocompleter/

My problem is that the jquery.post function return the php code not interpreted.

Does anyone can help me?

thankyou

alberto

Archivos adjuntos:

thumbnail
Alireza Angabini, modificado hace 14 años.

RE: problem: jquery + php autocomplete

New Member Mensajes: 4 Fecha de incorporación: 25/05/09 Mensajes recientes
Hi
I have same problem.
If you find your answer please inform me.
thx
Tor Iver Wilhelmsen, modificado hace 14 años.

RE: problem: jquery + php autocomplete

Junior Member Mensajes: 60 Fecha de incorporación: 3/12/08 Mensajes recientes
The most common cause is that the web server is not set up to pass *.php URLs to the PHP interpreter, and thus they are just rendered as text. If you use Apache, look into the docs for how to set up mod_php.

In particular, this is important to have in the config file:

AddType application/x-httpd-php .php
thumbnail
Alireza Angabini, modificado hace 14 años.

RE: problem: jquery + php autocomplete

New Member Mensajes: 4 Fecha de incorporación: 25/05/09 Mensajes recientes
Hi
No. the first page is php too and interpreted correctly, but when ajax javaScript call second page to return a value, second page not interpreted !