1 Reply Latest reply on Apr 30, 2009 8:18 AM by Nick Belaevski

    Sarissa rewrite default XMLHTTPRequest implementation in IE7

    Eugene Stherbin Newbie

      Hi,
      We are using richfaces together with iLog components and have many memory leaks in IE7 browser in case when components used together.
      When I discovered the problem I find code in framework.pack.js that override default XMLHttpRequest

      
       XMLHttpRequest=function(){
       if(!_SARISSA_XMLHTTP_PROGID){
       _SARISSA_XMLHTTP_PROGID=Sarissa.pickRecentProgID(["Msxml2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"])
       }return new ActiveXObject(_SARISSA_XMLHTTP_PROGID)
       };
      

      Without code above all work fine and no any memory leaks happened .

      The code above located in Sarissa library inside framework.pack.js and executed when framework.pack.js loaded.

      Can you make quick fix of this problem and save in any place old implementation of XMLHttpRequst object. for example :
      ...
      var _defaultXMLHttpRequest = XMLHttpRequest;
      ...
       XMLHttpRequest=function(){
       if(!_SARISSA_XMLHTTP_PROGID){
       _SARISSA_XMLHTTP_PROGID=Sarissa.pickRecentProgID(["Msxml2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"])
       }return new ActiveXObject(_SARISSA_XMLHTTP_PROGID)
       };
      
      

      The code above will solve many problems with memory leaks .
      Thanks.