Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/12/2009, 07:50
Avatar de Knight_Rider
Knight_Rider
 
Fecha de Ingreso: noviembre-2009
Ubicación: La House de mis viejos XD
Mensajes: 83
Antigüedad: 14 años, 5 meses
Puntos: 4
Respuesta: Error en Autorefresh con AJAX

He realizado el cambio y sigue dándome el mismo error.

Así queda ahora:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Reproductor</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
.Estilo1 {color: #FFFFFF}
body,td,th {
	color: #FFFFFF;
}
-->
</style>
<script type="text/javascript">
function Ajax(){
var xmlHttp;
	try{	
		xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
	}catch (e){
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
		}catch (e){
		    try{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch (e){
				alert("No AJAX!?");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function(){
		document.getElementById('ReloadThis').innerHTML=xmlHttp.responseText;
		setTimeout('Ajax()',5000);
	}
	xmlHttp.open("GET","../CurrentSong.txt",true);
	xmlHttp.send(null); 
}
window.onload=function(){
	setTimeout('Ajax()',5000);
}
</script>
</head>
<body>

<p align="center" class="Estilo1"><span class="Estilo6"><img src="../img/logo/225x150.jpg" width="225" height="150" /></span></p>

<div id="ReloadThis" align="center" class="Estilo1">Procesando...</div>

</body>
</html> 
Lo he simplificado y suprimido la marquesina y sigue generandome el mismo error.

Tambien he modifcado lo de la lectura del archivo y sigo teniendo el mismo error. :(
Según he visto se refiere a a esta parte del código linea 35 aproximadamente pero no veo el qué... O_o
Código:
xmlHttp.onreadystatechange=function(){
		document.getElementById('ReloadThis').innerHTML=xmlHttp.responseText;
		setTimeout('Ajax()',5000);