IE 11 - HTML Web Resource - Error

Apr 20, 2014 at 6:22 PM
Hi,

I'm using this library in an HTML web resource against CRM 2011. I seem to be getting an error in the developers tools console in IE 11, but not in Chrome. Below is a snippet of the code I'm using:

<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="cxo_json2js"></script>
<script src="ClientGlobalContext.js.aspx"></script>
<script src="cxo_xrmservicetoolkitjs"></script>

<script type="text/javascript">
$(function() {
var query = "$filter=cxo_BookingId/Id eq guid'" + 123+ "'";

XrmServiceToolkit.Rest.RetrieveMultiple(
    "cxo_imageSet",
    query,
    function (results) {
        console.log(results);
    },
    function (error) {
        console.log(error);
    },
    function onComplete() {
    },
    false
);      
});

Below are two errors I see in the IE11 developer tools console:

SCRIPT5009: 'XPathEvaluator' is undefined
File: global.ashx, Line: 6, Column: 431745

CRIPT5007: Unable to get property 'CrmUrlEncode' of undefined or null reference
File: global.ashx, Line: 6, Column: 154903

Am I doing something incorrectly with using this library as an HTML web resource? I've successfully called this query in js web resources in the same CRM instance and browser.

Any help would be appreciated.

Thanks,
Bob
Coordinator
Apr 21, 2014 at 12:18 PM
Hi.

CRM 2011 is not compatible with IE11 yet.

You can find the whole list in the following link

http://support.microsoft.com/kb/2669061

Regards,
Jaimie
Apr 21, 2014 at 1:49 PM
Thanks. I actually figured it out.

By putting in the following line in your HTML it will work properly:

<meta http-equiv="X-UA-Compatible" content="IE=10" />

Great library, btw.