Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/04/2009, 13:50
Avatar de ..::MaRcOs::..
..::MaRcOs::..
 
Fecha de Ingreso: diciembre-2006
Mensajes: 328
Antigüedad: 17 años, 5 meses
Puntos: 3
problema con innerHTML

Hola foreros tengo un problema, resulta que mi codigo anda bien en firefox pero en internet explorer dice que la propiedad id no esta definida

Código:
<script language="javascript" type="text/javascript">
function NuevoAjax(){
        var ajaxs = ["Msxml2.XMLHTTP","Msxml2.XMLHTTP.4.0","Msxml2.XMLH TTP.5.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"];
var ajax = false;
for(var i=0 ; !ajax && i<ajaxs.length ; i++){
try{ ajax = new ActiveXObject(ajaxs); }
catch(e) { ajax = false; }
}
if(!ajax && typeof XMLHttpRequest!='undefined') {
ajax = new XMLHttpRequest();
}
return ajax;
}

function Img(id){
                
        ajax=NuevoAjax();
		var Pag = "/funciones/imgphoto.php?id="+id;
        //peticionamos los datos, le damos la url enviada desde el link
        ajax.open("GET", Pag, true); 
        ajax.onreadystatechange=function(){
                
				if(ajax.readyState==1){
                        document.getElementById('contenido').innerHTML = "<table width='715' border='0' align='left' cellpadding='0' cellspacing='0'><tr><td colspan='4' bgcolor='#FFFFFF' class='barramodulo' style='padding-bottom:10px;'>Fotos</td></tr></table>";
                                }else{

<!-- aqui creo q esta el problema -->

                        document.getElementById('contenido').innerHTML = ajax.responseText;
						
						
						
						
								
                                }
        }
        ajax.send(null);
}
</script>
como podria inplementar jquery en ese codigo de arriba