bonjour voila jai ce script de recherche qui fonctionne tres bien sous firefox, mais qui ne fonctionne pas sous IE.
Est ce que quelqun peu me dire pourquoi ? merci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function sendData(data, page, method)
    {
        if(document.all)
            var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
        else
            var XhrObj = new XMLHttpRequest();
        var content = document.getElementById('divRes');
        if(method == "GET")
        {
            if(data == 'null')
                XhrObj.open("GET", page);
            else
                XhrObj.open("GET", page+"?"+data);
        }
        else if(method == "POST")
            XhrObj.open("POST", page);
        XhrObj.onreadystatechange = function()
        {
            if (XhrObj.readyState == 4 && XhrObj.status == 200)
                content.innerHTML = XhrObj.responseText ;
        }    
        if(method == "GET")
            XhrObj.send(null);  
        else if(method == "POST")
        {
          XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
            XhrObj.send(data);
        }
    }