
25/08/2009, 17:29
|
| | Fecha de Ingreso: julio-2009
Mensajes: 53
Antigüedad: 15 años, 7 meses Puntos: 0 | |
Respuesta: Como meto este javascript en php? Cita:
Iniciado por gerson No es de esta manera: Código PHP: echo '
<script type="text/javascript">
var options = {
script:"test.php?json=true&limit=6&",
varname:"input",
json:true,
shownoresults:false,
maxresults:6,
callback: function (obj) { document.getElementById(\'testid\').value = obj.id; }
};
var as_json = new bsn.AutoSuggest(\'testinput\', options);
var options_xml = {
script: function (input) { return "test.php?input="+input+"&testid="+document.getEle mentById(\'testid\').value; },
varname:"input"
};
var as_xml = new bsn.AutoSuggest(\'testinput_xml\', options_xml);
</script>';
Mil Felicidades! Asi Es !!!! Gracias Infinitas! Post Resuelto en menos de 15 minutos Gracias! |