<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic xmlhttprequest/IServerXMLHTTPRequest2 created in framework.pack.js? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/xmlhttprequest-iserverxmlhttprequest2-created-in-framework-pack/m-p/323992#M10993</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Im trying to create a custom ajax request in Internet Explorer.
About halfway my code i'm trying the following line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;xhr = new XMLHttpRequest();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Instead of getting a regular xmlhttprequest object I'm getting a "[object IServerXMLHTTPRequest2]"
During the code in the line above a jump is made to the framework.pack.js and a ISserverXMLHTTPRequest2 is made, to the following lines in framework.pack.js:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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)
};
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to avoid this, I need a regular XMLHttpRequest object.&lt;/P&gt;
&lt;P&gt;Edit: I should add: I'm using nuxeo 5.8 and IE11.&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke Roo&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2014 12:09:35 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-03-18T12:09:35Z</dc:date>
    <item>
      <title>xmlhttprequest/IServerXMLHTTPRequest2 created in framework.pack.js?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xmlhttprequest-iserverxmlhttprequest2-created-in-framework-pack/m-p/323992#M10993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Im trying to create a custom ajax request in Internet Explorer.
About halfway my code i'm trying the following line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;xhr = new XMLHttpRequest();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Instead of getting a regular xmlhttprequest object I'm getting a "[object IServerXMLHTTPRequest2]"
During the code in the line above a jump is made to the framework.pack.js and a ISserverXMLHTTPRequest2 is made, to the following lines in framework.pack.js:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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)
};
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to avoid this, I need a regular XMLHttpRequest object.&lt;/P&gt;
&lt;P&gt;Edit: I should add: I'm using nuxeo 5.8 and IE11.&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke Roo&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 12:09:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xmlhttprequest-iserverxmlhttprequest2-created-in-framework-pack/m-p/323992#M10993</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-03-18T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: xmlhttprequest/IServerXMLHTTPRequest2 created in framework.pack.js?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/xmlhttprequest-iserverxmlhttprequest2-created-in-framework-pack/m-p/323993#M10994</link>
      <description>&lt;P&gt;It seems that it happened before with jQuery: &lt;A href="http://fisheye.nuxeo.com/browse/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/sarissa-ie-workaround.js?r=b9f3e6ef397a375151ed96a698ecdf311b8c94b7"&gt;http://fisheye.nuxeo.com/browse/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/sarissa-ie-workaround.js?r=b9f3e6ef397a375151ed96a698ecdf311b8c94b7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;the solution seems to be the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;if (Sarissa.originalXMLHttpRequest) {
        xhr = new Sarissa.originalXMLHttpRequest();
    }else if (window.XMLHttpRequest) {
        xhr = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
    xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bauke Roo&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:14:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/xmlhttprequest-iserverxmlhttprequest2-created-in-framework-pack/m-p/323993#M10994</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-03-18T16:14:10Z</dc:date>
    </item>
  </channel>
</rss>

