Storyline 3 compatibility with I.E.8, particularly javaScript message "Object doesn't support this property or method"

Hi Gurus

Here's a challenge for you! I have a client (big corporate/Government....lots of legacy security issues, air-gapped machines, paranoia about upgrading etc) who is running IE8! Yep, I know, 'get them to upgrade!' your saying. But due to the issues listed above, currently, there is more of a chance of seeing pigs fly.

Anyway. I have been asked to refresh a largish CBT project adding in some features and taking out others. I have managed to build something that works fine is all current browsers (although I haven't yet tested Safari, but they don't use Macs anyway). The problem is it doesn't work in IE8. I suspect it may be purely because Storyline 3 now generates code that simply isn't compatible with IE8, but I'm not sure of this. The issue seems to be related to a check to see what browser is being used, particularly related to Edge. The offending code is below

Can anyone shed any light on this one please as I'm kind of stuck on which way to go now.   Thanks.

Error is : -

Object doesn't support this property or method story.html, line 135 character 29

Offending line is: -

gl = canv.getContext('webgl') || canv.getContext('experimental-webgl');

Full code section for completeness is : -

132             isEdge: function() {
133                 var hasGlCapability = (function() {
134                          var canv = document.createElement('canvas'),
135                                        gl = canv.getContext('webgl') || canv.getContext('experimental-webgl');
136                         canv = null;
137                         return gl != null;
138                         }());
139                   return window.MSBlobBuilder != null && window.msCrypto == null && hasGlCapability;
140             }
141            };



2 Replies