Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/08/2005, 15:05
Avatar de MaBoRaK
MaBoRaK
 
Fecha de Ingreso: abril-2003
Ubicación: La Paz - Bolivia
Mensajes: 2.003
Antigüedad: 21 años
Puntos: 35
loading...........


no responde porque no pasas a la funcion el objeto xmlhttprequest
hazlo asì

var url = "/sistema/aplicacion/popup/obtener_vehiculo.php?param=" + escape( document.forms[0].patente.value ); // script del lado del servidor
http.open("GET", url , true);
http.onreadystatechange = obtener_vehiculo_patente(http);
http.send(null);
return false;


function obtener_vehiculo_patente(http)
{
if (http.readyState == 4)
{
if(http.status == 200)
{
var vehiculo = http.responseText;
if( vehiculo.toString() == "" )
{
//submit
//Ahora verificamos que no este elvehiculo si es que este esta marcado
//document.forms[0].submit();
alert('akdsak');
}
else
{
var datos = 'El vehiculo ya se encuentra registrado en el sistema';
var v = vehiculo.split("|");
datos+= "\nPatente : " + v[2] ;
datos+= "\nAño : " + v[3];
datos+= "\nMarca : " + v[1];
alert(datos);
return false;
}
}
}

return false;
}


connection closed.
__________________

Maborak Technologies