Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/01/2013, 14:17
nades
 
Fecha de Ingreso: enero-2013
Ubicación: Distrito Federal
Mensajes: 88
Antigüedad: 11 años, 3 meses
Puntos: 1
Respuesta: Mostrar un valor despues de seleccionar dos select dependientes con ajax

En el archivo .js donde tenia mi codigo AJAX que es el que llama al archivo select_proceso.php coloque el codigo que me enviaste

function obtenerTarifa(){
var habitacion = document.getElementById('idhabitacion');
idhabitacion = motivo.value;
if (window.XMLHttpRequest){
// IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}else{
// IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("tarifa").innerHTML =xmlhttp.responseText;
}
}
xmlhttp.open("POST","tarifa.php?hab="+idhabitacion ,true);
xmlhttp.send();
}