Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/05/2008, 15:34
fanatimillo
Usuario no validado
 
Fecha de Ingreso: octubre-2003
Mensajes: 7
Antigüedad: 20 años, 6 meses
Puntos: 0
Pregunta problema con AJAX en firefox

Hola, he visto varios temas parecidos, pero ya estaban cerrados, de no ser así pido disculpas..
tengo el siguiente problema.
tengo mi web que carga el siguiente codigo ajax

<script language="javascript">
function crearAjax()
{
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 Contenido(urldestino)
{
var contenedor;
contenedor = document.getElementById('content');

// creamos un nuevo objeto ajax
ajax=crearAjax();

//cargar el archivo html por el método GET
ajax.open("GET", urldestino,true);

ajax.onreadystatechange=function()
{
if (ajax.readyState==4) // Readystate 4 significa que ya acabó de cargarlo
{
content.innerHTML = ajax.responseText
}
}
ajax.send(null)
}

window.onload= function()
{
Contenido("contacto_ajax.php");
}
</script>


El tema es que en IE me funciona perfecto pero en firefox no se ve. es decir no hace nada, no tira error, ni nada.
les dejo el link por si lo quieren ver mas detenidamente

http://www.yagondesign.com.ar/contenedor.php

Muchisimas gracias.