sigo recibiendo del siguiente error:ajax problemas? con activexobjects
excepción no detectada: [Excepción ... "volvió Componente código de error: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" ubicación : "marco JS :: http://site/cms/js/interface.js :: :: doAjaxCall línea 300" de datos: no]
excepción no detectada: [excepción ... "Componente devolvió un error código: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" Lugar: "marco JS :: http://site/cms/js/interface.js :: :: doAjaxCall línea 300" de datos: no]
Línea 0
Esta es la función con el doAjaxCall
function doAjaxCall(cmd,params) {
var postdata='cmd='+cmd+'¶ms='+params;
var a=sajax_init_object();
if (a) {
a.open("POST","ajax_handler.php", false);
a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
a.send(postdata); <====Line 300
document.body.style.cursor="default";
if(a.readyState == 4) {
return a.responseText;
} else {
alert("We where unable to execute the ajax call.");
}
}
function sajax_init_object() {
var A;
try {
A=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
A=new ActiveXObject("Microsoft.XMLHTTP");
} catch (oc) {
A=null;
}
}
if(!A && typeof XMLHttpRequest != "undefined")
A=new XMLHttpRequest();
if (!A)
alert("Could not create connection object.");
return A;
}
Cualquier idea?
es esto va fuera de su dominio? ¿Estás usando una URL relativa o absoluta? –