
20/08/2008, 11:14
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Caracas
Mensajes: 489
Antigüedad: 17 años, 3 meses Puntos: 14 | |
Respuesta: Ayuda con prototype y ajax Código PHP: //este echo es el contenido de tu responseText
echo '{"valor1": "'.$variabledelcampo1.'", "valor2": "VALOARVAR2", "cero": "0"}'
despues haces lago asi:
Código:
new Ajax.Request(url, { method: 'post',{
onSuccess: function(transport) {
campos = transport.responseText.evalJSON();
$('text').update(campos.valor1);
}
}
});
__________________ My path is lit by my own fire, I only go where I desire |