Código:
si alguien me puede ayudar para lograr que valide las veces que sea necesario, de antemano se los agradesco <script language="javascript" type="text/javascript">
function nuevoAjax()
{
/* Crea el objeto AJAX. Esta funcion es generica para cualquier utilidad de este tipo, por
lo que se puede copiar tal como esta aqui */
var xmlhttp=false;
try
{
// Creacion del objeto AJAX para navegadores no IE
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
// Creacion del objet AJAX para IE
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E) { xmlhttp=false; }
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp=new XMLHttpRequest(); }
return xmlhttp;
}
function cargaContenido() {
tel = document.form1.tel.value;
ajax=nuevoAjax();
ajax.open("GET","valida_telefono.php?tel=" + tel,true);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
document.getElementById("presentar_info").innerHTML=ajax.responseText;
}
}
ajax.send(null);
}
</script>

