Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/12/2013, 20:10
demondrums
 
Fecha de Ingreso: mayo-2012
Ubicación: Colombia
Mensajes: 3
Antigüedad: 12 años
Puntos: 0
Ajax en xamppp no funciona

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 original
  1. function veri_empl(str,codi_empl)
  2. {
  3.     var xmlhttp;
  4.     if (window.XMLHttpRequest)
  5.   {
  6.       xmlhttp=new XMLHttpRequest();
  7.   }
  8.     else
  9.   {
  10.     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  11.   }
  12.     xmlhttp.onreadystatechange=function()
  13.   {
  14.       if (xmlhttp.readyState==4 && xmlhttp.status==200)
  15.     {
  16.       if(xmlhttp.responseText=="error")
  17.       {
  18.         document.getElementById("mostrar").innerHTML="<small>El usuario no existe, verifique...</small>";
  19.         document.getElementById("codi_empl").value="";
  20.         document.getElementById("codi_empl").focus();
  21.       }
  22.       else
  23.       {
  24.         //var dividido=xmlhttp.responseText.split("-")
  25.         document.getElementById("mostrar").innerHTML=xmlhttp.responseText;
  26.         /*document.getElementById("line_celu").value=dividido[0];
  27.         document.getElementById("plan_dato").value=dividido[1];
  28.         document.getElementById("plan_vozz").value=dividido[2];
  29.         document.getElementById("plan_vozz").focus();*/
  30.       }
  31.     }
  32.   }
  33.     xmlhttp.open("POST","../ajax.php?ctrl="+str+"&codi_empl="+codi_empl,true);
  34.     xmlhttp.send();
  35. }

Les agradezco, lo requiero de manera Urgente!