Ajax

zeug -  
 jmg78 -
Bonjour,
je travail sur joomla, et un problème sur un module de recherche qui utilise ajax.mon problème es que IE6 n'arrive pa a faire fonctionner l'ajax du moteur de recherche.je ne sais pas quoi faire .
voici ma fonction ajax:
this.createAJAX = function() {
try {
this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e1) {
try {
this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2) {
this.xmlhttp = null;
}
}
if (! this.xmlhttp) {
if (typeof XMLHttpRequest != "undefined") {
this.xmlhttp = new XMLHttpRequest();
} else {
this.failed = true;
}
}
};


je vs merci
Configuration: Windows XP
Firefox 3.0.6

1 réponse

  1. jmg78
     
    /* Compilation conditionnelle d'IE */
    @cc_on
    @if (@_jscript_version >= 5)
    try { xh = new ActiveXObject('Msxml2.XMLHTTP'); }
    catch (e)
    {
    try { xh = new ActiveXObject('Microsoft.XMLHTTP'); }
    catch (E) { xh = false; }
    }
    @else
    xh = false;
    @end
    0