IE11 doesn't support addOnReady Method | XM Community
Question

IE11 doesn't support addOnReady Method

  • 29 January 2020
  • 6 replies
  • 3 views

Badge +1
My code below receives the following error on IE11.

Qualtrics.SurveyEngine.addOnReady(function()
{
console.log('test');
});


Error:
Failed executing Page "ready" event handler TypeError: Object doesn't support property or method 'includes'

Does IE11 not support this Qualtrics method or am I missing something?

6 replies

Userlevel 3
Badge +2
I am only using anonymous link for testing. maybe if you try to use anonymous link to test and you still got the error, then your problem is not related to vanity URL.
Badge +1
I am thinking it might have something to do with how our Vanity URL was setup. Could that potentially be a culprit?
Userlevel 3
Badge +2
it must be some other JavaScript you added in other questions that contains the string "includes" that broke the IE11.
If you create a brand new survey and add the javascirpt you mentioned, you can see the test message without issue. I just tested in my IE11 instance with a new survey.
Badge +1
Not seeing the error anymore or anything else in the console (I would expect to see the string 'test').
Badge +1
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/

});

Qualtrics.SurveyEngine.addOnReady(function()
{
console.log('test');

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/

});
Userlevel 3
Badge +2
Can you paste all the code you added to the "Add JavaScript" area, there must be somewhere it uses the keyword "includes" which is not supported by IE11.

Leave a Reply