Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2007, 12:04
Roni Size
 
Fecha de Ingreso: junio-2003
Mensajes: 60
Antigüedad: 20 años, 11 meses
Puntos: 0
Problemas al abrir un documento

Hola,
He creado este codigo para activar el archivo rpc.php, pero no me funciona la llamada al archivo rpc.php aunque si me sale el alert, como que el envio fue correcto, sabeis por que puede ser ?

Gracias y un saludo...

function nuevoAjax(){

var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}

if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}

return xmlhttp;
}

function envio(){

var contenedor;

ajax=nuevoAjax();
ajax.open('get', 'rpc.php',true);

ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
alert('Envio correcto');

}
}
ajax.send(null)
}