Gravatar for rdhuyvetters@reference.be

Question by Rik, Sep 13, 2018 1:43 PM

Coveo for sitecore SearchBox in IE11 not working

We have the standard coveo search box on our customer's site.
On Firefox, Chrome, Safari and edge everything works as intended.

But on IE the search box isn't rendered.
https://www.melexis.com/ (top right)

We're getting these messages in the console:

SCRIPT5009: 'Promise' is undefined
CoveoJsSearch.Searchbox.min.js (8,9135)

SCRIPT5007: Unable to get property 'addCultureInfo' of undefined or null reference
en.js (28,1)

SCRIPT438: Object doesn't support property or method '$'

Are the components supported on IE11?

Current Coveo for Sitecore version: 4.1.342.10

Current Sitecore version: 8.2.161221

IE version 11.1266.15063.0



Any help is appreciated

Best regards,

Rik

Gravatar for geoff.leggett@milwaukeetool.com

Comment by Geoff Morgenne, Nov 5, 2018 7:49 PM

I just experienced this issue after upgrading from coveo for sitecore 4.0 to 4.1, so I'd be curious if you could post an accepted answer.

,

I just had this same issue after an upgrade from 4.0 to 4.1 and would be curious if you could post an accepted answer.

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Sep 13, 2018 2:20 PM

The JS UI is supposed to be compatible with Internet Explorer 11: https://docs.coveo.com/en/395/javascript-search-framework/supported-browsers---coveo-javascript-search-framework

I recommend you open a support ticket with this issue.

Gravatar for rdhuyvetters@reference.be

Comment by Rik, Sep 18, 2018 8:11 AM

Hi @Jean-François L'Heureux

Last time I filed a support ticket I got the message that support is being discontinued and I should ask support here.

Has this policy been changed?

Best regards,
Rik

Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Nov 6, 2018 10:35 AM

Hi,

The Coveo JavaScript Search Framework normally works in IE11 in normal mode.

When IE11 switches in compatibility mode (when a hostname does not have dots in it (local development or intranet website), intranet zone, or X-UA-Compatible meta tag value set to a lower version), it emulates IE10, 9, 8, or even 7. These versions of IE are not supported by the Coveo JavaScript Search Framework because they do not support the `Promise` JavaScript object.

The workaround for this is to add a reference to a `Promise` polyfill like this one: https://github.com/stefanpenner/es6-promise

You could simply add the following snippet somewhere on the page, before the Coveo search resources are defined:


<!-- Automatically provides/replaces `Promise` if missing or broken. -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
<!-- Minified version of `es6-promise-auto` below. -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"></script>
Gravatar for geoff.leggett@milwaukeetool.com

Comment by Geoff Morgenne, Nov 6, 2018 2:56 PM

This is what we put into place to solve this issue as well. Thanks for the response Jeff!

Ask a question