Código HTML:
function objAjax(){
try{
xmlhttp = new ActiveXObjet("Msxml2.XMLHTTP");
}catch (e) {
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest !='undefined'){
xmlhttp = new XMLHttpRequest();
}
return xmlhttp
}
oXML = nuevoAjax();
oXML.open('GET','ServletCatList?menu='+escape(menu),false);
if (window.ActiveXObject)
oXML.onreadystatechange=handleServlet;
else if (window.XMLHttpRequest)
oXML.onreadystatechange=handleServlet();
oXML.send('');
function handleServlet()
{
alert(oXML.readyState);
if(oXML.readyState==4)
{
if(oXML.status==200)
{
var res = oXML.responseXML.documentElement;
for(i = 0;i < res.getElementsByTagName'resultado').length;i++)
{
var item = res.getElementsByTagName('resultado')[i];
getData(item);
showResults();
}
}
else
{
alert("Error loading pagen"+ oXML.status +":"+oXML.statusText);
}
}
}
Esto me funciona perfectamente en IE, ¿alguien sabe cual es mi problema?, ¿porqué no llega hasta el nivel 4 del ajax?
muchas gracias

Este tema le ha gustado a 1 personas (incluyéndote)