Buenas noches.
La vaina es que en un software que hice al montarlo en el servidor local XAMPP dejo de funcionar la respuesta de Ajax
La funcion Javascript
:
Código Javascript
:
Ver originalfunction veri_empl(str,codi_empl)
{
var xmlhttp;
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
if(xmlhttp.responseText=="error")
{
document.getElementById("mostrar").innerHTML="<small>El usuario no existe, verifique...</small>";
document.getElementById("codi_empl").value="";
document.getElementById("codi_empl").focus();
}
else
{
//var dividido=xmlhttp.responseText.split("-")
document.getElementById("mostrar").innerHTML=xmlhttp.responseText;
/*document.getElementById("line_celu").value=dividido[0];
document.getElementById("plan_dato").value=dividido[1];
document.getElementById("plan_vozz").value=dividido[2];
document.getElementById("plan_vozz").focus();*/
}
}
}
xmlhttp.open("POST","../ajax.php?ctrl="+str+"&codi_empl="+codi_empl,true);
xmlhttp.send();
}
Les agradezco, lo requiero de manera Urgente!