Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/01/2008, 14:47
nilram
 
Fecha de Ingreso: julio-2007
Mensajes: 14
Antigüedad: 16 años, 10 meses
Puntos: 0
Error ajax con IE

hola que tal?
tengo un problema con un ajax en el IE, la idea es cargar un combo a partir de otro combo, en mozilla me funciona perfecto, peor necesito q me funcione en IE .
el error q me da es "El objeto no acpta esta propiedad o metodo" y de verdad no se que podria ser. Este es el codigo q estoy utilizando para el ajax

var xmlHttp=null;
function crearXMLRequest(){
if(window.ActiveXObject){
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");//Microsoft.XMLHTTP
}else if(window.XMLHttpRequest){
xmlHttp=new XMLHttpRequest();
}
Loadgif="Examen <img src=\"imagenes/loader.gif\">";
document.getElementById("loader").innerHTML=Loadgi f;
var idEdo=document.getElementById("cmbEstado").value;
var url = "AjaxOficinaCTRL?idEdo=" + escape(idEdo);
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = callback_aplicacion();
xmlHttp.send(null);
}

function callback_aplicacion() {
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
var oficina = xmlHttp.responseXML.getElementsByTagName("oficina" );
lista="<select name=\"cmbOficina\" id=\"cmbOficina\" style=\"width:330px;\" >";
lista+="<option value=\"0\" selected=\"selected\">Seleccione</option>";
for(i=0;i<oficina.length;i++){ //.attributes[0].nodeValue
lista+=" <option value=\""+oficina[i].attributes[0].nodeValue+"\">"+oficina[i].childNodes[0].nodeValue+"</option>";
}
lista+="</select>";

document.getElementById("lista").innerHTML=lista;
Loadgif="Oficina";
document.getElementById("loader").innerHTML=Loadgi f;
}
}
}

el error apunta justaemnte cuando llama a la funcion callback_aplicacion()

gracias de antemano por la ayuda