Ticket #1998: 1998_3.patch

File 1998_3.patch, 1.6 KB (added by Frederico Caldeira Knabben, 12 years ago)
  • _whatsnew.html

     
    107107                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1832">#1832</a>] Calling
    108108                        FCK.InsertHtml() in non-IE browsers would now activate the document processor
    109109                        as expected.</li>
     110                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1998">#1998</a>] The native
     111                        XMLHttpRequest class is now used in IE, whenever it is available.</li>
    110112        </ul>
    111113        <h3>
    112114                Version 2.6 Beta 1</h3>
  • editor/_source/internals/fcktools_ie.js

     
    7474        switch ( object )
    7575        {
    7676                case 'XmlHttp' :
     77                        // Try the native XMLHttpRequest introduced with IE7.
     78                        try { return new XMLHttpRequest() ; } catch (e) {}
     79
    7780                        aObjs = [ 'MSXML2.XmlHttp', 'Microsoft.XmlHttp' ] ;
    7881                        break ;
    7982
  • editor/filemanager/browser/default/js/fckxml.js

     
    3131FCKXml.prototype.GetHttpRequest = function()
    3232{
    3333        // Gecko / IE7
    34         if ( typeof(XMLHttpRequest) != 'undefined' )
    35                 return new XMLHttpRequest() ;
     34        try { return new XMLHttpRequest(); }
     35        catch(e) {}
    3636
    3737        // IE6
    3838        try { return new ActiveXObject( 'Msxml2.XMLHTTP' ) ; }
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy