 
			
				28/05/2009, 08:03
			
			
			     |  
      |    |    |    Fecha de Ingreso: mayo-2009  
						Mensajes: 1
					  Antigüedad: 16 años, 5 meses Puntos: 0     |        |  
  |      Error NoT acceptable        Tengo un problema al cargar un texto con Ajax. 
Mi funcion ajax es:   
Código :   
function Ajax() { 
   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') { 
      try { 
         xmlhttp = new XMLHttpRequest(); 
      } catch (e) { 
         xmlhttp=false; 
      } 
   } 
   if (!xmlhttp && window.createRequest) { 
      try { 
         xmlhttp = window.createRequest(); 
      } catch (e) { 
         xmlhttp=false; 
      } 
   }   
   return xmlhttp; 
}       
Tengo varios enlaces que cargan funciones similares a esta con onclick:   
Código :   
function cargar_ilusionarte(){ 
        carga_imagen_ilusionarte(); 
   var espectaculo = document.getElementById('espectaculo');   
   var xmlhttp = Ajax();   
   var url = "la que sea; 
   xmlhttp.open("POST", url, true); 
   xmlhttp.onreadystatechange = function() { 
      if (xmlhttp.readyState == 4) { 
         espectaculo.innerHTML = xmlhttp.responseText; 
      } 
   }; 
   xmlhttp.send(null);   
   }     
En local funciona en todos los navegadores e incluso en algún dominio en remoto, pero no se porqué en el servidor donde tengo colgada la página me de un error solo con firefox que es este:   
Código :   
Not Acceptable   
An appropriate representation of the requested resource /ilusionarte.php could not be found on this server.   
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at xxxPort 80       
Necesito saber a que se debe, ya que las respuestas que he encontrado en internet no me han funcionado, como añadir a la funcion cargadora   
Código :   
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');       
gracias           |