
29/08/2007, 12:07
|
 | $this->role('moderador'); | | Fecha de Ingreso: mayo-2006 Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses Puntos: 2135 | |
Re: Se puede hacer con AJAX?? Lo siento es mi error prueba asi:
Código:
Event.observe( window, 'load', function()
{
$('cliente').onchange = function()
{
var itemSelected = this.options[this.selectedIndex].value;
var pars = "idcliente=" + escape(itemSelected);
alert( pars );
new Ajax.Request( 'select.php',
{
method: 'get',parameters: pars,onSuccess: function(transport)
{
alert("Ajax Request completed! response: " + transport.responseText);
fillDatos( transport.responseText );
}
}
};
});
Saludos. |