Les dejo aqui el codigo para ver si alguien tiene idea de que puede ser, ya busque todo acerca de AJAX con Firefox y no encuentro donde puede estar el error
Código:
Agradecere cualquier opinionfunction nuevoAjax(){
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 cargarContenido(id){
if(id!=0){
var t1, t2, res, funcion, valor;
ajax = nuevoAjax();
ajax.open("POST", "verificar_usuario.asp",false);
//hasta aqui llega en Firefox, despues no sigue mas
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
res = ajax.responseXML.documentElement;
funcion = res.getElementsByTagName('funcion')[0].firstChild.data;
valor = res.getElementsByTagName('valor')[0].firstChild.data;
eval(funcion + '(valor)');
}
}
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send("usuario=" + document.form1.usuario.value + "&pass=" + document.form1.pass.value + "&campus=" + document.form1.campus.value);
}
}
window.onload= function(){cargarContenido(0)}
Gracias!!!!
san
uses "ajax.onreadystatechange=function()", ya que FireFox no lo reconoce como tal.
, aunque yo no lo haría...
, estoy dando los primeros pasitos en AJAX bajo DWR y ya tengo los primeros tropiezos
estoy recargando un formulario utilizando DWR bajo struts que funciona bien en IE pero no en Firefox

