Subject: | problem in generated code by apache2::ajax |
Date: | Wed, 21 Oct 2009 10:58:09 +0200 |
To: | bug-Apache2-Ajax [...] rt.cpan.org |
From: | Sergio Bruni <brunisergio [...] gmail.com> |
Hi ser
I'm using the module Apache2-Ajax-0.11 with perl v5.8.8.
Using Internet Explorer 8 I obtain the error: Object doesn't support this
property or method
After some code inspecting, I found the error in the following generated
funcion;
var ghr=getghr();
function getghr(){
*if(typeof XMLHttpRequest != "undefined") { *
return function(){
*return new XMLHttpRequest();*
}
}
var msv= ["Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0",
"Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP",
"Microsoft.XMLHTTP"];
for(var j=0;j<=msv.length;j++){
try {
A = new ActiveXObject(msv[j]);
if(A){
return function(){
return new ActiveXObject(msv[j]);
}
}
}
catch(e) { }
}
return false;
}
the error arise in the bolded statement;
I have modified the underlined statement in the following manner:
if(typeof XMLHttpRequest == "undefined") {
and the error disappear.
Thanks in advance for any help
best regards
Sergio Bruni